A guide on how to update portainer.

Using SSH, connect to the device.

Using this command find the portainer CONTAINER ID and IMAGE information:

docker ps

Then using the information from previous command, run following commands:

docker ps - find id and image
docker stop CONTAINER ID
docker rm CONTAINER ID
docker rmi IMAGE

Finally, run command to install latest version of portainer:

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

Categorized in:

Raspberry Pi,

Last Update: November 22, 2024