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: