使用命令 docker update
参考文档地址:https://docs.docker.com/engine/reference/commandline/update/
docker update --restart always 容器ID号或者容器别名
如果想要停止容器自动运行需要先执行 docker update --restart no 容器ID号或者容器别名 ,不然容器会一直在反复运行