首页 > 其他 > 详细

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

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

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?

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!