'Change Docker base image of running containers
I have been using alpine as the base image for the docker containers which are getting deployed in openshift platform. The reason being it was light weight and faster to download. Now due to security and support reasons we need to change it to Redhat image. Although it's big in size but our application needs and better security with support is priority. Hence I want to change the base image of alpine to redhat. What is the best approach to achieve this without impacting the production workload?
Should I change the Dockerfile with new base image, deploy, test and verify the application and decommission the old containers? or is their a faster way? Since there are more than 150 microservices running on these containers.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|