UPGRADE PORTAINER COMMUNITY EDITION ON DOCKER / / RASPBERRY PI
Here is a quick how-to for the way I updated my portainer to the latest
SSH to the Raspberry Pi 5
login
sudo su –
docker stop portainer
docker rm portainer
docker pull portainer/portainer-ce:latest
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:latest
Open a browser, navigate to your Raspberry Pi 5:9443 and then login
Success!