码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-06-02 18:33:11      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:TE   exist   href   accept   one   ref   nbsp   was   --   

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?

标签:TE   exist   href   accept   one   ref   nbsp   was   --   

原文地址:https://www.cnblogs.com/antflow/p/9126007.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!