본문 바로가기
IT/OS

RHEL 7.9 용 Docker 설치

by 조병희 2025. 5. 23.

RHEL 7.9 가 나온지 오래되다 보다 더 이상 지원이 쉽지 않다.

그래도 설치가능한 레파지토리 등록.

cd /etc/yum.repos.d/

cat centos7.repo 

[centos7-base]
name=CentOS-7-Vault
baseurl=http://vault.centos.org/7.9.2009/os/x86_64/
enabled=1
gpgcheck=0

 

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

 

위 레파지토리에 없는 파일들은 인터넷 뒤져서 설치

wget "https://mirror.chpc.utah.edu/pub/centos/7/extras/x86_64/Packages/container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm"
wget "https://mirror.chpc.utah.edu/pub/centos/7/extras/x86_64/Packages/slirp4netns-0.4.3-4.el7_8.x86_64.rpm"
--2025-05-23 10:21:26--  https://mirror.chpc.utah.edu/pub/centos/7/extras/x86_64/Packages/slirp4netns-0.4.3-4.el7_8.x86_64.rpm

 

받은 파일 설치

sudo yum localinstall -y container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm
sudo yum localinstall -y slirp4netns-0.4.3-4.el7_8.x86_64.rpm fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm

 

실제 도커 엔진 파일 설치

sudo yum install docker-ce

Failed to set locale, defaulting to C
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Resolving Dependencies
--> Running transaction check
---> Package docker-ce.x86_64 3:26.1.4-1.el7 will be installed
--> Processing Dependency: containerd.io >= 1.6.24 for package: 3:docker-ce-26.1.4-1.el7.x86_64
--> Processing Dependency: docker-ce-cli for package: 3:docker-ce-26.1.4-1.el7.x86_64
--> Processing Dependency: docker-ce-rootless-extras for package: 3:docker-ce-26.1.4-1.el7.x86_64
--> Running transaction check
---> Package containerd.io.x86_64 0:1.6.33-3.1.el7 will be installed
---> Package docker-ce-cli.x86_64 1:26.1.4-1.el7 will be installed
--> Processing Dependency: docker-buildx-plugin for package: 1:docker-ce-cli-26.1.4-1.el7.x86_64
--> Processing Dependency: docker-compose-plugin for package: 1:docker-ce-cli-26.1.4-1.el7.x86_64
---> Package docker-ce-rootless-extras.x86_64 0:26.1.4-1.el7 will be installed
--> Running transaction check
---> Package docker-buildx-plugin.x86_64 0:0.14.1-1.el7 will be installed
---> Package docker-compose-plugin.x86_64 0:2.27.1-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================
 Package                               Arch               Version                       Repository                    Size
===========================================================================================================================
Installing:
 docker-ce                             x86_64             3:26.1.4-1.el7                docker-ce-stable              27 M
Installing for dependencies:
 containerd.io                         x86_64             1.6.33-3.1.el7                docker-ce-stable              35 M
 docker-buildx-plugin                  x86_64             0.14.1-1.el7                  docker-ce-stable              14 M
 docker-ce-cli                         x86_64             1:26.1.4-1.el7                docker-ce-stable              15 M
 docker-ce-rootless-extras             x86_64             26.1.4-1.el7                  docker-ce-stable             9.4 M
 docker-compose-plugin                 x86_64             2.27.1-1.el7                  docker-ce-stable              13 M

Transaction Summary
===========================================================================================================================
Install  1 Package (+5 Dependent packages)

Total download size: 114 M
Installed size: 401 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7Server/docker-ce-stable/packages/docker-buildx-plugin-0.14.1-1.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
Public key for docker-buildx-plugin-0.14.1-1.el7.x86_64.rpm is not installed
(1/6): docker-buildx-plugin-0.14.1-1.el7.x86_64.rpm                                                 |  14 MB  00:00:10     
(2/6): docker-ce-26.1.4-1.el7.x86_64.rpm                                                            |  27 MB  00:00:10     
(3/6): containerd.io-1.6.33-3.1.el7.x86_64.rpm                                                      |  35 MB  00:00:29     
(4/6): docker-ce-cli-26.1.4-1.el7.x86_64.rpm                                                        |  15 MB  00:00:08     
(5/6): docker-ce-rootless-extras-26.1.4-1.el7.x86_64.rpm                                            | 9.4 MB  00:00:05     
(6/6): docker-compose-plugin-2.27.1-1.el7.x86_64.rpm                                                |  13 MB  00:00:06     
---------------------------------------------------------------------------------------------------------------------------
Total                                                                                      3.1 MB/s | 114 MB  00:00:36     
Retrieving key from https://download.docker.com/linux/centos/gpg
Importing GPG key 0x621E9F35:
 Userid     : "Docker Release (CE rpm) <docker@docker.com>"
 Fingerprint: 060a 61c5 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35
 From       : https://download.docker.com/linux/centos/gpg
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : docker-buildx-plugin-0.14.1-1.el7.x86_64                                                                                                                                                                                1/6 
  Installing : containerd.io-1.6.33-3.1.el7.x86_64                                                                                                                                                                                     2/6 
  Installing : docker-compose-plugin-2.27.1-1.el7.x86_64                                                                                                                                                                               3/6 
  Installing : 1:docker-ce-cli-26.1.4-1.el7.x86_64                                                                                                                                                                                     4/6 
  Installing : docker-ce-rootless-extras-26.1.4-1.el7.x86_64                                                                                                                                                                           5/6 
  Installing : 3:docker-ce-26.1.4-1.el7.x86_64                                                                                                                                                                                         6/6 
  Verifying  : docker-compose-plugin-2.27.1-1.el7.x86_64                                                                                                                                                                               1/6 
  Verifying  : containerd.io-1.6.33-3.1.el7.x86_64                                                                                                                                                                                     2/6 
  Verifying  : 3:docker-ce-26.1.4-1.el7.x86_64                                                                                                                                                                                         3/6 
  Verifying  : 1:docker-ce-cli-26.1.4-1.el7.x86_64                                                                                                                                                                                     4/6 
  Verifying  : docker-ce-rootless-extras-26.1.4-1.el7.x86_64                                                                                                                                                                           5/6 
  Verifying  : docker-buildx-plugin-0.14.1-1.el7.x86_64                                                                                                                                                                                6/6 

Installed:
  docker-ce.x86_64 3:26.1.4-1.el7                                                                                                                                                                                                          

Dependency Installed:
  containerd.io.x86_64 0:1.6.33-3.1.el7      docker-buildx-plugin.x86_64 0:0.14.1-1.el7      docker-ce-cli.x86_64 1:26.1.4-1.el7      docker-ce-rootless-extras.x86_64 0:26.1.4-1.el7      docker-compose-plugin.x86_64 0:2.27.1-1.el7     

Complete!

 

도커 시작

sudo systemctl start docker

 

설치 확인

sudo docker info
Client: Docker Engine - Community
 Version:    26.1.4
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.14.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.27.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

 

서비스 등록

sudo systemctl enable docker

 

 

댓글