Upgrade Cloud Docker package
It is a best practice to use the latest version of Cloud Docker for Commerce.
The version requirement is specified in the composer.json
file for your project. Use the following instructions for the upgrade process.
Cloud Docker for Commerce releases sometimes introduce changes to the format and options in the docker-compose.yml
file. Adobe recommends creating a backup of your existing docker-compose.yml
file before upgrading so you can review the changes. If you have custom configurations that you want to preserve across builds, move them to the docker-compose.override.yml
file before you rebuild or upgrade the Docker environment.
To update the Cloud Docker for Commerce package:
On your local workstation, update the Cloud Docker for Commerce package using Composer.
Copied to your clipboardcomposer update magento/magento-cloud-docker --with-dependenciesAdd, commit, and push code changes.
Copied to your clipboardgit add -ACopied to your clipboardgit commit -m "Update magento/magento-cloud-docker"Copied to your clipboardgit push origin <branch-name>Preserve custom configuration.
After you upgrade to the latest version of Cloud Docker for Commerce, stop and restart the Docker environment.