1. 程式人生 > >docker - how do you disable auto-restart on a container?

docker - how do you disable auto-restart on a container?

command and -o down upd rest bsp ref spa

https://stackoverflow.com/questions/37599128/docker-how-do-you-disable-auto-restart-on-a-container

90down voteaccepted

You can use the --restart=unless-stopped option, as @Shibashis mentioned, or update the restart policy (this requires docker 1.11 or newer);

See the documentation for docker update

and Docker restart policies.

docker update --restart=no my-container

that updates the restart-policy for an existing container (my-container)

docker - how do you disable auto-restart on a container?