NeroCube / bookmark

Place some learning resources
0 stars 0 forks source link

Start containers automatically (unless-stopped) #254

Open NeroCube opened 3 years ago

NeroCube commented 3 years ago

This command will ensure all currently running containers will be restarted unless stopped.

$ docker update --restart unless-stopped $(docker ps -q)

How to stop auto-restart docker container

docker update --restart=no my-container