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

Posted 蚂蚁flow

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker - how do you disable auto-restart on a container?相关的知识,希望对你有一定的参考价值。

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?的主要内容,如果未能解决你的问题,请参考以下文章

[2016-3-18]OMG美语每日笔记-How do you get on someone's radar?How do you make them notice you?

c语言:调用函数打印How do you do!

UVa 10943 - How do you add?

How do you evaluate music?

How do you build a database?

UVA10943 How do you add递推打表