Managing docker

This command changes the restart policy for an already running container named redis.

docker start redis
docker update --restart unless-stopped redis
This command will ensure all currently running containers will be restarted unless stopped.
docker update --restart unless-stopped $(docker ps -q)

Back to top