Swapping the image on a container provides you with an easy way to change the software that a container is running without having to recreate and reconfigure the container. This gives you the option to easily change between versions of web servers, languages, databases, etc. It's even possible to completely switch to an alternative piece of software altogether — e.g. Apache to Nginx.
Please note that although your original configuration will be migrated across to the new image, there may be differences in versions of software that will still require you to update your configuration files.
To begin swapping the image for a container, follow the simple steps below:
You will not be able to swap images for Integrated Containers.
Updating an image version follows similar steps to swapping an image as mentioned above. The only difference being, instead of changing the image (say from Apache + PHP 7.3 to Apache + PHP 7.4), you will be updating the image version to the latest release available.
To explain, we rollout updates to our existing images to make sure they're running on the latest version of their respective release. Any Cloud Containers with a newer image version available will have an "NV" icon highlighted next to them.
To update to the latest release, as advised above, click the Container Image drop down menu where you should see a new version of the Image available similar to the format below:
Apache + PHP 7.1
You can then select the new version from the drop down menu and then select the Change Version option to apply the changes.
When swapping or updating an image, the configuration files will be migrated across to the new image. However, there may be breaking changes across the different versions that will require you to manually modify your config files. For example, our supervisord changes may cause issues when upgrading your container. One such example is the supervisord feature we recently released for our PHP images.
In the case that your container has issues, please don't hesitate to contact our support team for assistance.