Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portainer - upgrade without stopping docker #5586

Closed
isarrider opened this issue Jul 2, 2022 · 6 comments
Closed

Portainer - upgrade without stopping docker #5586

isarrider opened this issue Jul 2, 2022 · 6 comments

Comments

@isarrider
Copy link

Hi,

as portainer isnt required to run docker and is deployed
as a container anyway, it shouldnt be an issue to leave docker
running and just upgrade portainer...

So I propose it is done like every container update...
If it is too much hassle to implement,
we could state it in the docu...

(because my understanding is that the container + image are removed and then
this is executed: https://github.com/MichaIng/DietPi/blob/master/dietpi/dietpi-software#L12261)

BR,
ALex

@Joulinar
Copy link
Collaborator

Joulinar commented Jul 2, 2022

This is working as expected as we stop all DietPi managed services during software installation and re-installation. However you could exclud the service from being DietPi controlled.

@isarrider
Copy link
Author

for docu purposes I out in here the 3 command lines to do it manually:

sudo docker container rm -f portainer
sudo docker image rm portainer/portainer-ce
sudo docker run -d -p '9002:9000' --name=portainer --restart=always -v '/run/docker.sock:/var/run/docker.sock' -v 'portainer_data:/data' 'portainer/portainer-ce'

documented & closed...

@isarrider
Copy link
Author

the official documentation suggests to install portainer like below...
https://docs.portainer.io/start/upgrade/docker

docker run -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

@Joulinar
Copy link
Collaborator

Yes and what are you trying to say with it? This is how we install it as well.

@isarrider
Copy link
Author

the way I see it different ports are specified...

@Joulinar
Copy link
Collaborator

Yap as we use http. This is stated on the link your shared on one of the first red boxes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants