메뉴 건너뛰기

조회 수 0 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

. 사전 패키지 설치

설치는 인터넷이 가능한 환경 하에서 진행한다. (폐쇄망 설치법은 추후 업데이트 예정)

 

DNS 서버 등록

echo "nameserver 168.126.63.1" >> /etc/resolv.conf
  • 이미 DNS 설정이 되어 있다면 skip..

 

dnf-utils 설치

dnf install -y dnf-utils

 

 

 

 

docker 레포지토리 추가

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

 

 

 

 

리포리스트 확인

dnf repolist -v

 

 

 

2. Docker 설치

dnf로 install을 설치하면 아래와 같이 오류가 발생한다.

기본적으로 RHEL 계열 8버전 부터는 컨테이너 관리 엔진을 docker에서 podman/buildah/skopeo로 변경 되었다.

[root@rocky-test-001 ~]# dnf install -y docker-ce
마지막 메타자료 만료확인(0:01:51 이전): 2023년 12월 22일 (금) 오후 03시 41분 50초.
오류: 
 문제: package docker-ce-3:24.0.7-1.el8.x86_64 from docker-ce-stable requires containerd.io >= 1.6.4, but none of the providers can be installed
  - package containerd.io-1.6.10-3.1.el8.x86_64 from docker-ce-stable conflicts with runc provided by runc-1:1.1.9-1.module+el8.9.0+1420+91577025.x86_64 from appstream
  - package containerd.io-1.6.10-3.1.el8.x86_64 from docker-ce-stable obsoletes runc provided by runc-1:1.1.9-1.module+el8.9.0+1420+91577025.x86_64 from appstream
 (...중략...) 
  - 작업에 가장 적합한 선택을 설치 할 수 없습니다
  - package runc-1.0.0-56.rc5.dev.git2abd837.module+el8.5.0+681+c9a1951f.x86_64 from appstream is filtered out by modular filtering
  - package runc-1.0.0-66.rc10.module+el8.5.0+770+e2f49861.x86_64 from appstream is filtered out by modular filtering
  - package runc-1.0.0-73.rc95.module+el8.7.0+1152+ac778627.x86_64 from appstream is filtered out by modular filtering
  - package runc-1:1.1.5-2.module+el8.9.0+1445+07728297.x86_64 from appstream is filtered out by modular filtering
(충돌하는 꾸러미를 교체하려면 명령줄에 '--allowerasing'을 추가하세요 또는 '--skip-broken'는 설치 할 수 없는 꾸러미를 건너 뜁니다 또는 '--nobest'는 최적 후보의 꾸러미만 사용합니다)

 

 

충돌하는 패키지를 삭제하면서 설치해야 되기 때문에 --allowerasing 옵션을 사용해야 한다. 

dnf install -y docker-ce --allowerasing

 

 

 

 

3. 설치 확인 및 실행

버전 및 systemctl로 확인한다.

docker --version

 

 

 

systemctl status docker

 

 

 

 

서비스 enable 및 시작

systemctl enable docker
systemctl start docker

 

 

 

 


  1. No Image 31Dec
    by
    2020/12/31 Views 467 

    centos7 sendmail 설치 및 세팅

  2. No Image 26Mar
    by
    2021/03/26 Views 407 

    tar.gz 파일 묶기, 압축하기, 압축 풀기

  3. 명령어 모음

  4. CentOS ImageMagick 설치 php 연동

  5. 리눅스 vsftpd 500 OOPS 에러 (CENTOS 7)

  6. No Image 26Mar
    by
    2021/03/26 Views 247 

    crontab 사용법

  7. No Image 26Mar
    by
    2021/03/26 Views 210 

    netstat 명령어

  8. No Image 26Mar
    by
    2021/03/26 Views 207 

    centos 시작시 네트워크 모듈 추가

  9. No Image 26Mar
    by
    2021/03/26 Views 182 

    재지향시 유의사항 (grep 재지향)

  10. 기본 허가권,퍼미션 지정(제어, 설정)하기(umask와 작동 원리)

  11. No Image 26Mar
    by
    2021/03/26 Views 162 

    find 명령어

  12. 다중명령어(세미콜론(;), 파이프pipe(|), 더블 엔퍼센트 &&, ||)의미,사용법과 차이점

  13. No Image 12Jan
    by
    2023/01/12 Views 154 

    우분투 작업 스케줄러 Crontab 사용법, 디버깅, 주의 사항

  14. No Image 20Jan
    by
    2023/01/20 Views 138 

    root 계정 su 명령 제한

  15. 작업 예약 스케줄러(크론Cron)파일,자동 백업 명령

  16. centos 7 APM 최신버전 설치 ( mariadb 10.4 / apache 2.4.39 / php 7.3.8 )

  17. 23Apr
    by 조쉬
    2024/04/23 Views 0 

    Rocky Linux 8에 docker 설치하기

Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 Next
/ 12

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved