Score:0

Containerd-shim hangs when running docker run

es flag

My problem is that from time to time, when I try to start a new container with docker run, it just hangs forever. All the running containers keep working fine, but I'm unable to start any container.

The only way of getting out of there is with Ctrl+C, but then I can't remove the failed container (nor the associated image, of course). What I've found so far is that the associated containerd-shim process keeps running, and when I term it (it responds to TERM, no need to KILL), then everything unstucks and if I tried and failed to remove the container, it's removed in that moment. I still can't create any new container with docker run though.

If I restart the docker service it stops happening... for a while. Of course this is less than ideal so I would like to find the root cause. I've been unable to find any containerd logs that can give me a clue of what's happening, so I'm here to see if someone had a similar problem and how he/she solved it or if someone with a deep knowledge of docker can give me a thread to pull.

I'm using docker engine v19.03.6 with containerd v1.4.4.

I'm not running out of memory. I've checked that.

Score:0
co flag

I'd start with an upgrade. There have been quite a few releases since 19.03.6 and containerd 1.4.4 that may have fixed this issue:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.