This guide walks you through the process of downgrading Portainer from Enterprise Edition to Community Edition in a Docker Swarm environment.
Prerequisites
- Docker Swarm cluster with Portainer EE installed
- Access to the manager node
- Administrative privileges
Step-by-Step Downgrade Process
βοΈ Step 1: Take a Backup
π¦ Backup your Portainer data and store it in a safe location before making any changes.
This ensures you can restore your instance if anything goes wrong.
Example:
π§± Step 2: Stop Existing Portainer Business Instance (Standalone Mode)
π Shut down the existing Portainer Business (EE) container.
π³ Step 3: Scale Down the Portainer Service (Swarm Mode)
If you are running Portainer in Docker Swarm, scale down the service to 0 replicas.
π Step 4: Downgrade the Portainer Database
Use the following command to downgrade the Portainer database to be compatible with the Community Edition (CE).
Replace
portainer_datawith your actual Portainer data volume or bind mount.
π Step 5: Redeploy Portainer CE (Swarm Mode)
After downgrading the database, redeploy Portainer Community Edition and reuse the existing Portainer Business data.
π°οΈ Step 6: Deploy the Portainer Agent
Deploy the Portainer Agent service across all nodes in the Swarm.
This allows Portainer CE to communicate with and manage Docker nodes.
The
--mode globalflag ensures the agent runs on every node in the Swarm cluster.
If you are still facing an issue, feel free to Ask Doubts in the Comment Section Below and Donβt Forget to Follow us on πΒ Social Networks.
| Happy Splunking π