티스토리 뷰

반응형

 

 

 

 

 



 

 

docker

 

 

레드헷 계열 리눅스에 도커를 설치하려고 하면 내가 원하는 도커는 없고 이상한 녀석이 있다.

 

[root@localhost ~]# dnf install docker
Last metadata expiration check: 1:09:09 ago on Tue 28 Oct 2025 04:00:26 PM KST.
Dependencies resolved.
=====================================================================================================================
 Package                          Arch        Version                                           Repository      Size
=====================================================================================================================
Installing:
 podman-docker                    noarch      4:4.9.4-23.module+el8.10.0+2064+309a12a4          appstream      117 k
Installing dependencies:
 conmon                           x86_64      3:2.1.10-1.module+el8.10.0+2001+6a33db9f          appstream       57 k
 container-selinux                noarch      2:2.229.0-2.module+el8.10.0+2001+6a33db9f         appstream       70 k
 containernetworking-plugins      x86_64      1:1.4.0-6.module+el8.10.0+2001+6a33db9f           appstream       23 M
 containers-common                x86_64      2:1-82.module+el8.10.0+2001+6a33db9f              appstream      147 k
 ...
Enabling module streams:
 container-tools                              rhel8

Transaction Summary
=====================================================================================================================
Install  21 Packages

 

 

레드헷 진영에서 밀고 있는 컨테이너 엔진이라고 한다.

진짜 도커와 다르므로 삭제하고 실제 도커를 설치하는 것이 좋겠다.

 

 

충돌이 날 수 있으니 모두 삭제를 수행하고

도커 레포지토리를 바라보게 한 후 설치를 진행한다.

 

 

dnf remove docker \
 docker-client \
 docker-client-latest \
 docker-common \
 docker-latest \
 docker-latest-logrotate \
 docker-logrotate \
 docker-engine \
 podman \
 runc

 

 

 

dnf -y install dnf-plugins-core
dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo

 

 

dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

 

 

 

[root@localhost ~]# dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Last metadata expiration check: 0:01:05 ago on Tue 28 Oct 2025 05:21:50 PM KST.
Dependencies resolved.
=====================================================================================================================
 Package                       Arch       Version                                         Repository            Size
=====================================================================================================================
Installing:
 containerd.io                 x86_64     1.7.28-1.el8                                    docker-ce-stable      49 M
 docker-buildx-plugin          x86_64     0.29.1-1.el8                                    docker-ce-stable      17 M
 docker-ce                     x86_64     3:28.5.1-1.el8                                  docker-ce-stable      21 M
 docker-ce-cli                 x86_64     1:28.5.1-1.el8                                  docker-ce-stable     8.7 M
 docker-compose-plugin         x86_64     2.40.2-1.el8                                    docker-ce-stable      15 M
Installing dependencies:
 container-selinux             noarch     2:2.229.0-2.module+el8.10.0+2001+6a33db9f       appstream             70 k
 fuse-common                   x86_64     3.3.0-19.el8                                    baseos                21 k
 fuse-overlayfs                x86_64     1.13-1.module+el8.10.0+2001+6a33db9f            appstream             69 k
 fuse3                         x86_64     3.3.0-19.el8                                    baseos                54 k
 fuse3-libs                    x86_64     3.3.0-19.el8                                    baseos                95 k
 libcgroup                     x86_64     0.41-19.el8                                     baseos                69 k
 libslirp                      x86_64     4.4.0-2.module+el8.10.0+2001+6a33db9f           appstream             70 k
 slirp4netns                   x86_64     1.2.3-1.module+el8.10.0+2001+6a33db9f           appstream             55 k
Installing weak dependencies:
 docker-ce-rootless-extras     x86_64     28.5.1-1.el8                                    docker-ce-stable     3.4 M
Enabling module streams:
 container-tools                          rhel8

Transaction Summary
=====================================================================================================================
Install  14 Packages

 

 

[root@localhost ~]# docker -v
Docker version 28.5.1, build e180ab8

 

 

도커가 잘 설치 되었고 도커를 실행하면 된다.

 

systemctl enable --now docker

 

 

 

 

 

 

 



 

 

 

 

도커 공식 참고자료
 

RHEL

Learn how to install Docker Engine on RHEL. These instructions cover the different installation methods, how to uninstall, and next steps.

docs.docker.com

 

 

 

 

 

 

반응형
댓글
반응형
최근에 올라온 글
«   2026/01   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Total
Today
Yesterday