[Docker] RHEL 7.x에 Docker CE 설치 방법

yum을 이용해서 설치하는 방법을 알아봅니다.

Shell > sudo yum install -y yum-utils
Shell > sudo yum-config-manager --add-repohttps://download.docker.com/linux/centos/docker-ce.repo
Shell > sudo yum makecache fast
Shell > sudo yum install -yhttp://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.33-1.git86f33cd.el7.noarch.rpm
Shell > sudo yum install -y docker-ce

 

마지막 yum install -y docker-ce할시 다음과 같은 에러가 나올 수 있습니다.

shell > yum install -y docker-ce
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
Resolving Dependencies
--> Running transaction check
---> Package docker-ce.x86_64 0:18.03.0.ce-1.el7.centos will be installed
--> Processing Dependency: pigz for package: docker-ce-18.03.0.ce-1.el7.centos.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: docker-ce-18.03.0.ce-1.el7.centos.x86_64
--> Running transaction check
---> Package docker-ce.x86_64 0:18.03.0.ce-1.el7.centos will be installed
--> Processing Dependency: pigz for package: docker-ce-18.03.0.ce-1.el7.centos.x86_64
---> Package libtool-ltdl.x86_64 0:2.4.2-22.el7_3 will be installed
--> Finished Dependency Resolution
Error: Package: docker-ce-18.03.0.ce-1.el7.centos.x86_64 (docker-ce-stable)
           Requires: pigz
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

 

pigz패키지가 없어서 나오는 에러로 이 패키지 설치 후 Docker를 설치하면 된다.

 

shell > yum install ftp://mirror.switch.ch/pool/4/mirror/epel/7/x86_64/Packages/p/pigz-2.3.4-1.el7.x86_64.rpm

 

 

 

도움이 되셨다면 광고클릭 한번 부탁드립니다.※

Designed by JB FACTORY