Skip to main content

How to Update Portainer to the latest version

List Docker Containers

The following article shows how to list containers in Docker. This will help to determine the container name for Portainer that is required in the following steps.
List All Docker Containers

Update Portainer

Once the portainer container name is knows (usually portainer ) you need to stop then remove the container in order to pull the update to apply the latest version

sudo docker stop portainer
sudo docker rm portainer

Once the newest portainer CE container has been pulled run it with the following command.

sudo docker pull portainer/portainer-ce:latest
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