What happens when the docker host restarts?

后端 未结 1 1680
眼角桃花
眼角桃花 2021-02-05 01:14

What happens when the docker host is shut down and restarted?

  • will the images that were running be restarted?
  • will the changes that were made to those ima
相关标签:
1条回答
  • 2021-02-05 02:05

    will the images that were running be restarted?

    Docker will restart containers when the daemon restarts if you pass -r=True to the startup options. On Ubuntu, you can accomplish this permanently by modifying DOCKER_OPTS="-r=true" in /etc/default/docker.

    will the changes that were made to those images persist, or will a new instance of the image be spawned and changes be lost?

    Containers will be stopped. Any modifications to the container will still be present when the container next starts, which will happen automatically when the docker daemon starts if -r=true is provided as mentioned above.

    where is the docker configuration stored on the host system?

    There is no configuration file per se. You can tune the upstart/init options in /etc/default/docker.

    0 讨论(0)
提交回复
热议问题