-
I was messing around trying to install portainer-ce before I figured out I needed I've since been able to delete all previously run containers with It's the docker.io/portainer/portainer-ce:lts image that was advised to pull from their_docs with: docker run -d -p 8000:8000 \
-p 9443:9443 --name portainer \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data portainer/portainer-ce:lts
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yeah, it is a bug. 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. |
Beta Was this translation helpful? Give feedback.
-
oh! three commands in two lines? so cute!😊 |
Beta Was this translation helpful? Give feedback.
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
.