Skip to content

Downgrade from Portainer BE to Portainer CE

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

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

On Docker

Shutdown the existing Portainer BE instance

Make sure that the Portainer BE 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 BE 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 BE instance data backup.

Downgrade the Portainer BE 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 BE data by following our instructions in Deploying Portainer.

On Kubernetes