Downgrade from Portainer Business to Portainer CE

If you have a running instance of Portainer Business and want to downgrade to Portainer CE, follow the instructions below.

  1. Shutdown the Portainer Business instance
  2. Backup Portainer Business data
  3. Downgrade the Portainer Business database
  4. Re-deploy a Portainer CE instance

On Docker

Shutdown the existing Portainer Business instance

Make sure that the Portainer Business instance is stopped before attempting any of the other steps.

Inside a Docker standalone environment it is as simple as:

 docker stop portainer

Inside a Swarm environment, you can simply scale down the Portainer service to 0 replicas:

 docker service scale portainer=0

Backup your data

First make sure to create a copy of the Portainer data volume.

You can use the following command to backup the data of the Portainer Business instance, you might need to update this command to match the name of your Portainer container:

 docker run --rm --volumes-from portainer -v $(pwd):/backup ubuntu tar cvf /backup/backup.tar /data

This will create a backup.tar file in your current folder containing the Portainer Business instance data backup.

Downgrade the Portainer Business database

Use the following command to downgrade the Portainer database:

 docker run -it --name portainer-database-rollback -v portainer_data:/data portainer/portainer-ee:latest --rollback-to-ce

Redeploy a Portainer CE instance

After downgrading the database, you can now redeploy Portainer CE and re-use the existing Portainer Business data by following our instructions in Deploying Portainer.

On Kubernetes