Skip to content

What impact has a containerd restart on my running service tasks? #46449

Closed Answered by thaJeztah
d630 asked this question in Q&A
Discussion options

You must be logged in to vote

Existing containers will continue to run, which is handled by the containerd shim (which acts as parent process for the container), but creating and deleting containers won't work while containerd is down; you can try this on a test machine;

# create a container that prints the date every 2 seconds
docker run -d --rm --name mycontainer alpine sh -c 'while true; do date; sleep 2; done'

# restart containerd, and check the container logs
systemctl restart containerd

docker logs mycontainer
Mon Sep 11 11:28:10 UTC 2023
Mon Sep 11 11:28:12 UTC 2023
Mon Sep 11 11:28:14 UTC 2023


# stop containerd and check that it's still running
systemctl stop containerd
docker logs mycontainer
Mon Sep 11 1…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@thaJeztah
Comment options

@d630
Comment options

Answer selected by laurazard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants