docker disable restart

--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)

猜你喜欢

转载自www.cnblogs.com/SZLLQ2000/p/9207702.html