Press "Enter" to skip to content

Install/update Portainer on docker

bist 0

 Portainer Server Deployment

Installing portainer

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

Updating portainer

docker ps
Get the portainer container ID
docker stop <container ID>
docker rm  <container ID>
docker rmi portainer/portainer-ce
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce

All done. Portainer is now updated to the latest version.

Leave a Reply

Your email address will not be published. Required fields are marked *