Telos
Subscriber
- 4,336
- 1,483
- NAS
- DS4l8play, DS202j, DS3623xs+, DSM 8.025847-𝘣𝘦𝘵𝘢
In the past, I've updated Portainer via SSH using
So I figured, why not just use docker compose...
So I dreamt up this docker-compose.yml...
But when I ran
Can you help me see my error in the docker-compose file?
After stopping and removing the Portainer instance that I has launched using docker compose, I ran the
sudo docker stop portainer
sudo docker rm portainer
sudo docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always --pull=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ee
So I figured, why not just use docker compose...
So I dreamt up this docker-compose.yml...
Code:
version: "3"
services:
portainer:
image: portainer/portainer-ee:latest
container_name: portainer
ports:
- "8000:8000"
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
restart: always
volumes:
portainer_data:
docker compose down
it didn't find my running Portainer container. Ultimately I stopped and removed the Portainer container via SSH, and then ran docker compose up -d
. Initially that seemed to work, however it created a new "out of the box" Portainer instance than did not pick up on my existing stacks, or my "ee" registration. Apparently my docker-compose.yml file isn't identical to the Portainer container which I ran using the docker run
command.Can you help me see my error in the docker-compose file?
After stopping and removing the Portainer instance that I has launched using docker compose, I ran the
docker run
command and regained my Portainer instance with its stacks, etc.