Why local version and container version is not same?

General support questions
Post Reply
rodphoenix
Posts: 2
Joined: 2024/02/02 13:01:31

Why local version and container version is not same?

Post by rodphoenix » 2024/02/06 00:51:44

I install CentOS-7-x86_64-Everything-2009.iso, and I look centos version,like follows:
#cat /etc/redhat- release
CentOS Linux release 7.9.2009 (Core)

Then I create a container and enter it, then I look centos version
sh-4.4# cat /etc/redhat- release
CentOS Linux release 8.4.2105

Why local centos version is 7.9.2009 and centos version is 8.4.2105 in container? If I want to change container version to 7.9.2009, how can I do? What detail command to use? Thanks

User avatar
TrevorH
Site Admin
Posts: 33154
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Why local version and container version is not same?

Post by TrevorH » 2024/02/06 00:54:40

The whole point of containers is that you don't have to run the same thing as the host operating system. You've chosen to run a CentOS 8.4.2105 container - which by the way is massively out of date - the 2105 being 2021-05 so it's going on 3 years old and has had no security updates in all that time. You can't change that other than by choosing a different container.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply