Update update_ha.md

This commit is contained in:
tteck 2021-08-27 14:48:46 -04:00 committed by GitHub
parent a7bdc5c13d
commit b90e5e441d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -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"
```