Linux

rocky docker 설치 방법

Naan 2022. 9. 30. 00:29
320x100

rocky docker 설치 방법이다.

rocky docker 는

# yum install docker 를 이용해서 설치를 하게 되면

Last metadata expiration check: 3:15:30 ago on Wed 28 Sep 2022 05:06:30 PM KST.
Dependencies resolved.
==============================================================================================================================================================================================================================================================================================
 Package                                                             Architecture                                             Version                                                                                       Repository                                                   Size
==============================================================================================================================================================================================================================================================================================
Reinstalling:
 container-selinux                                                   noarch                                                   2:2.189.0-1.module_el8.7.0+1216+b022c01d                                                      AppStream                                                    60 k
 podman-docker                                                       noarch                                                   2:4.2.0-1.module_el8.7.0+1216+b022c01d                                                        AppStream                                                    69 k

Transaction Summary
==============================================================================================================================================================================================================================================================================================
위와 같이 podman-docker 가 설치가 되는데 이건 docker 가 아니다 정상 작동이 안된다.

설치를 하기 위해서 새로운 repo 를 설치를 해줘야 한다.

설치 전에 

# yum install -y yum-utils

설치 하고

repo 추가

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

그리고 설치

# yum install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin

 

# systemctl enable --now docker

# systemctl start docker 

해주면 된다.

 

 

320x100