Skip to content

Commit

Permalink
Update update_portainer.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rmiddle authored Jun 18, 2024
1 parent 41edeb2 commit d0b50e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion update_portainer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ portainer_name=`docker ps | grep portainer-ce | awk '{print $2}'`
sudo docker stop $portainer_pid || error "Failed to stop portainer!"
sudo docker rm $portainer_pid || error "Failed to remove portainer container!"
sudo docker rmi $portainer_name || error "Failed to remove/untag images from the container!"
sudo docker run -d -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 --logo "https://pi-hosted.com/pi-hosted-logo.png" || error "Failed to execute newer version of Portainer!"

sudo mkdir -p /portainer/Files/AppData/Config/portainer || error "Failed to create the Portainer Config Folder"

sudo docker run -d -p 9000:9000 -p 9443:9443 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /portainer/Files/AppData/Config/portainer:/data portainer/portainer-ce:latest --logo "https://pi-hosted.com/pi-hosted-logo.png" || error "Failed to run Portainer docker image!"

0 comments on commit d0b50e1

Please sign in to comment.