This is an old revision of the document!
Docker
Portainer
Upgrade Portainer
Run:
cd /workspace/Portainer/ ./portainer.sh
portainer.sh
#!/bin/sh
# From: https://rpi-wifi:8443/docker
docker ps |grep portainer|awk '{print $1}'|xargs docker stop
docker ps -a | grep portainer | awk '{print $1}' | xargs docker container rm
docker image ls|grep portainer|awk '{print $3}'|xargs docker rmi
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:linux-arm
<code>
Start **Portainer** instance with ability to manage local **Docker Desktop for Windows**.
<code>
C:\Users\Varimathras>docker run -d -p 8000:8000 -p 9000:9000 --name "Portainer" --restart always -v "/var/run/docker.sock:/var/run/docker.sock" portainer/portainer-ce
Start Portainer instance on RPi.
$ 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:linux-arm
DokuWiki
Upgrade DokuWiki
Run:
cd /workspace/Dokuwiki/ ./dokuwiki.sh
dokuwiki.sh
#!/bin/sh
# From: https://rpi-wifi:8443/docker
docker ps |grep dokuwiki|awk '{print $1}'|xargs docker stop
docker ps -a | grep dokuwiki | awk '{print $1}' | xargs docker container rm
docker image ls|grep dokuwiki|awk '{print $3}'|xargs docker rmi
docker-compose build; docker-compose up -d