You can install Portainer with docker-compose and have control over your port number and config location. When it’s time to upgrade just run docker-compose pull portainer and then docker-compose up -d. My guess is that if you try to upgrade this way with an existing Portainer (GUI) install you will break it. It’s best implemented with a fresh (docker-compose) install.
Code
version: "2"
services:
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
volumes:
- /NAS/AppData/portainer:/data ##Adjust as needed.
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
ports:
- 8000:8000
- 9000:9000 ##Adjust as needed.
restart: unless-stopped
Alles anzeigen