Upgrading Image from RHEL 7 to RHEL 8

ndoldon
Mon, 03 Oct 2022 23:53:25 +0000
General

Hi All,

I’ll start by saying I am very new to Docker and am having to learn a lot of things on-the-job, so apologies in advance for badly worded question.
As part of my new role, I have inherited a lot of legacy Docker images (all hosted locally on our Portus server) and have been put in charge of maintaining and keeping them up to date with latest patches.
They all use RHEL for their OS, with various things done to them. I only appear to have the final image, and none of the layers, so my question is:

Whilst I am able to run yum update to get the latest patches for the RHEL version on each image, is there a way for me to do a full upgrade from RHEL 7 to RHEL 8 inside the container, or will I need to start from scratch with a RHEL8 image, and try to rebuild whatever was done for each one?

Hope this makes sense, again, I am new so apologies if the question is not a good one.

Thanks

4 posts - 2 participants