After the last portainer update to 2.9.3, I noted that the documentation was manually pulling an older version of the software. It’s key to make sure that you are always downloading the LATEST version of portainer.
Step 1 update the linux distro
sudo apt-get update && sudo apt-get upgrade
Step 2 – Stop Portainer container
sudo docker stop portainer
Step 3 – Remove the container
sudo docker rm portainer
Step 4 – pull the latest image
sudo docker pull portainer/portainer-ce:latest
Step 5 – Deploy the updated version of Portainer
sudo docker run -d -p 8000:8000 -p 9000:9000 -p 9443:9443 -–name=portainer —restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest