Skip to content

nerdctl purge -f > WARN[0004] failed to remove container <id> error="unknown container status unknown" #4294

Answered by apostasie
fuguesoft asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, it is a bug.
containerd/containerd#11890 - there is a fix pending merge in containerd for it, so, hopefully we should get it with the next patch release.

Unfortunately, there is no cute way to clean the mess right now.

What you can do is kill the shim process for that container then immediately remove it.
Something like, get the shim: ps aux | grep shim | grep XXXCONTAINERIDXXX
Then kill -s KILL XXPROCESSIDXX; nerdctl rm -f XXXCONTAINERIDXXX.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fuguesoft
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants