Upgrading Portainer on Standalone Docker (Community Version)

Docker Portainer

It's time to upgrade your Portainer community version instance. If you followed my guide for installing Portainer in your docker environment, then you are good to move forward and follow the instructions for the upgrade process. These come from the official documentation, but I have some predecessor activities I recommend.

Take note of your current Portainer setup

Make a note and take action on the following details for your Portainer installation:

  • Portainer container name
  • Portainer data volume
  • Backup your docker installation (always good to backup in case of an emergency)

NOTE: There you are going to remove Portainer container, this will not impact your other containers, stacks, or configurations - you are not deleting the Portainer volume, so there is no loss.

Stop, Remove, Update, and Start Portainer

The process is simple, you are going to stop the Portainer instance, remove it, pull the latest version, and then run it.

Stop Portainer:

docker stop portainer

Remove Portainer:

docker rm portainer

Pull the latest community verison of Portainer:

docker pull portainer/portainer-ce:latest

Restart Portainer:

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

Verify the upgrade

After starting the new container, open your web browser and navigate to http://your-server-ip:9000 (or the port you used). You should see the upgraded version of Portainer.

Conclusion

Simple right! Now if that's all successful, you can remove your backup in a few days (if you need to make space) and move on!

Previous Post Next Post