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.
- Shutdown the Portainer BE instance
- Backup Portainer BE data
- Downgrade the Portainer BE database
- Re-deploy a Portainer CE instance
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.