Recently I saw I had an update pending, which didn’t go away after updating. I already had the latest image on my Docker. Then I saw it was an other image it was revering to: portainer-ce.
Portainer Community Edition (Portainer CE)
If you’ve installed Portainer like I have, the update/upgrade is quite easy! Below is how I’ve installed Portainer (notice that I use now low caps instead of capital P):
$ docker volume create portainer_data $ 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
I have a script which automates the update (update_portainer.sh):
#!/bin/bash docker pull portainer/portainer docker stop portainer docker rm portainer 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
This should be modified and change “portainer/portainer” to “portainer/portainer-ce”:
#!/bin/bash docker pull portainer/portainer-ce docker stop portainer docker rm portainer 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
Running this script will pull the latest portainer-ce image, stop the current portainer container, remove it and recreate it.
Pieter
Thanks for pointing to this post!
Mike
Thank you for the tutorial!
Marcel
You’re welcome 😊