Portainer update 2.21.0

i’ve tried updating portainer to the latest as of now (2.21.0) with:

dietpi-software reinstall 185

i did a full backup in front.
But the update failed because the (portainer) image cannot be removed/overwritten, because it’s in use by a container.
so i used a subshell as proposed by the dialogue, did “docker stop portainer”, exited, retried, failed again. i stopped all containers, no success, image is still used. so i forcefully removed the image, retried the update but that failed with another error that now the image is missing …

well i restored the backup, which went butter-smooth.

But i want this new version so much :wink:

what can i do?

this is tagged as latest:

i did manage to update from 2.19.x to 2.20.3 manually by stopping it, but now this way doesn’t work for me.

strange behaviour of Docker, I was never able to replicate this. At least on a fresh installation, reinstalling works without problems.

Theoretically, you can stop the container manually and delete the image.

docker container rm -f <conatiner_ID>
docker image rm <image_ID>

After that, the reinstallation should work as follows

docker run -d -p 9002:9000 --name=portainer --restart=always -v /run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
1 Like

This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.