How to auto restart a Docker container after a reboot in CoreOS?

前端 未结 6 1685
滥情空心
滥情空心 2021-01-30 21:20

Assuming the Docker daemon is restarted automatically by whatever init.d or systemd like process when the OS is restarted, what is the preferred way to restart one or more Docke

6条回答
  •  借酒劲吻你
    2021-01-30 21:33

    The only documentation I've seen is Docker's Host Integration docs which are a bit light on details, etc.

    Basically, it suggests starting the daemon with -r=false and using systemd (or upstart if you're using something other than CoreOS).

提交回复
热议问题