使用命令 docker update 

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

 

1、修改自动运行

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

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

 

相关文章:

  • 2022-12-23
  • 2021-06-16
  • 2021-09-28
  • 2021-12-29
  • 2021-09-28
  • 2021-05-14
  • 2022-02-26
  • 2022-12-23
猜你喜欢
  • 2021-08-25
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案