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

前端 未结 6 1695
滥情空心
滥情空心 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:42

    What worked for me is to add --restart='always' to the container {run -d ...} command

提交回复
热议问题