From b90e5e441d35dc46b54d80caeca492fe2ea8fe0c Mon Sep 17 00:00:00 2001 From: tteck Date: Fri, 27 Aug 2021 14:48:46 -0400 Subject: [PATCH] Update update_ha.md --- update_ha.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/update_ha.md b/update_ha.md index 8ed2ce26..bc814a08 100644 --- a/update_ha.md +++ b/update_ha.md @@ -58,3 +58,21 @@ echo -e "\e[1;33m Removing Old Image... \e[0m" docker image prune -f echo -e "\e[1;33m Finished Update! \e[0m" ``` + +Portainer-CE +``` +### upportainer.sh ### +#!/bin/bash + +echo -e "\e[1;33m Pulling New Portainer-Ce Version... \e[0m" +docker pull portainer/portainer-ce:latest +echo -e "\e[1;33m Stopping Portainer... \e[0m" +docker stop portainer +echo -e "\e[1;33m Removing Portainer... \e[0m" +docker rm portainer +echo -e "\e[1;33m Starting Portainer... \e[0m" +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:latest +echo -e "\e[1;33m Removing Old Image... \e[0m" +docker image prune -f +echo -e "\e[1;33m Finished Update! \e[0m" +```