Docker certification course - Docker Daemon

Hello,

in the course of Docker certification course, topic: restart policies you mentionned that when docker daemon is stopped/down all containers are stopped. Why ? since in different topic you spoke about containerd and containerd-shim. So when we have containerd-shim even if the daemon is stopped the containers continue to run.

Am I right or I have misunderstood ?

Thank you in advance.

Hi @rsimos

When you stop the Docker daemon, it terminates all active containers by sending them a termination signal. Docker uses Containerd and runc to manage containers, but by default, if the Docker daemon stops, the containers will also stop shortly after.

However, Docker has a feature called live-restore. If you set "live-restore": true in /etc/docker/daemon.json, running containers will continue even if the Docker daemon is down. This decouples container management from the daemon, so containers stay up until you explicitly stop them or the system shuts down.

Hello,

Thank you so much this what it is confusing me because in the engine explanation it is indicated that containerd-shim handles the containers even if the daemon is stopped. So which daemon containerd or docker daemon?

And when you mention to manage what do you mean exactly because docker daemon for images, volumes. Containerd is responsible for downloading image is it right or it is the docker daemon?

I think this article will help.