This procedure upgrades a Docker Compose deployment of Anchore Enterprise to a newer release within the same major version. Before you begin, review Prepare for the Upgrade.
Upgrade Procedure
Step 1: Review the Release Notes
View the Anchore Enterprise Release Notes for the target version. The release notes call out breaking changes, new or changed configuration, and any version-specific upgrade instructions you need to plan for before starting.
Step 2: Stop Anchore Enterprise
docker compose down
Step 3: Back Up Your Data Volumes
As described in Prepare for the Upgrade, make a copy of any data volumes before proceeding.
Step 4: Back Up Your Original Compose File
cp docker-compose.yaml docker-compose.yaml.backup
Step 5: Update Your Compose File
Download the compose file that ships with the target release and check it against your current file to see if there any changes that may affect your deployment, such as new services, environment variables, or volume definitions:
curl -sSfL https://docs.anchore.com/current/docs/deployment/docker_compose/docker-compose.yaml > docker-compose-new.yaml
The name field in the compose file you download differs from the one in your existing file, because it tracks the release. If your deployment started on a v6.0.x quickstart, the volume name differs too — quickstart volumes were versioned per release up to v6.0.x and have been stable since v6.1.0. Do not copy either value across. Keep the values already in your docker-compose.yaml so your deployment keeps reading the volume it has been writing to.
name: "<your-existing-project-name>"
volumes:
<your-existing-volume-name>:
external: false
current URL always serves the latest release.Fold any relevant changes into your docker-compose.yaml. If the diff shows nothing beyond version bumps, confirm every service is still present in your file and update the image tags in place. All services using the enterprise image move to the new release tag, while the ui service uses the separately versioned enterprise-ui image:
services:
api:
- image: docker.io/anchore/enterprise:<your-current-version>
+ image: docker.io/anchore/enterprise:v6.2.0
ui:
- image: docker.io/anchore/enterprise-ui:<your-current-ui-version>
+ image: docker.io/anchore/enterprise-ui:v6.2.0
Step 6: Restart the Anchore Enterprise Containers
docker compose up -d
Step 7: Confirm the Services Start
Watch the output of the previous to confirm all the services start. Once they have all started, you can use the below command to list the running services and confirm that they are all healthy.
docker ps
Step 8: Verify the New Version Is Running
Once the containers are up, verify the new version is running:
anchorectl system status