Cannot update portainer due to container being used?

hi at all,

I just get this error here:

maybe you can give me a hint, please. best wishes

What are you trying to do? Reinstall docker or somehting?

You need to sop all containers first, a running container is preventing the docker img rm command.

1 Like

I just want to update portainer to 2.20 (newest release). nothing else.

You need to stop the container first

docker stop 99cbalde5d33

latest version is 2.19.4 isn’t it? At least that’s the one marked as stable. Even if 2.20. have been released yesterday

anyway. From the error menu, open a subshell and stop the container

docker stop portainer

Btw: I did a simple test an it was working without issues

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Installing Portainer: Simplifies container management in Docker (standalone host)

[  OK  ] DietPi-Software | docker container rm -f 109306cda45e
[  OK  ] DietPi-Software | docker image rm f12f1fd2694d
[ INFO ] DietPi-Software | Portainer will be deployed now. This could take a while...
[ INFO ] DietPi-Software | 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, please wait...
Unable to find image 'portainer/portainer-ce:latest' locally
latest: Pulling from portainer/portainer-ce
1 Like

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