Docker ps command into XARGS command to check and auto restart unhealthy containers
docker ps -f health=unhealthy --format "docker restart {{.ID}}" | xargs --no-run-if-empty -t docker restart output is : docker restart docker restart 7c20974e2b02 7c20974e2b02 Error response from daemon: No such container: docker Error response from daemon: No such container: restart How…