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