Docker 已运行容器修改配置

使用命令 docker update 

参考文档地址:https://docs.docker.com/engine/reference/commandline/update/

1、修改自动运行

docker update --restart always 容器ID号或者容器别名

如果想要停止容器自动运行需要先执行 docker update --restart no 容器ID号或者容器别名 ,不然容器会一直在反复运行

原文地址:https://www.cnblogs.com/myfqm/p/13086125.html