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)

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2021-11-15
  • 2021-10-07
猜你喜欢
  • 2022-12-23
  • 2021-12-07
  • 2021-07-30
  • 2022-12-23
  • 2021-04-23
  • 2022-12-23
  • 2021-07-08
相关资源
相似解决方案