메뉴 건너뛰기

SayClub.org

리눅스(Linux)

yum repository 관리에 필요한 yum-utils 를 설치한다. (설치가 안되어있을 경우)

$ sudo yum install -y yum-utils

 

Docker repository 추가

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

 

Docker Engine 설치

$ sudo yum install docker-ce docker-ce-cli containerd.io

 

Docker 실행

$ sudo systemctl start docker

 

hellow-world 이미지로 Docker가 잘 설치 되었는지 확인

$ sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
2db29710123e: Pull complete 
Digest: sha256:975f4b14f326b05db86e16de00144f9c12257553bba9484fed41f9b6f2257800
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

 

dnf 를 이용하여 설치할 때도 yum 을 이용할때와 거의 동일하다.

$ sudo dnf -y install dnf-plugins-core
$ sudo dnf config-manager \
	--add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
$ sudo dnf install docker-ce docker-ce-cli containerd.io



 

참고

https://docs.docker.com/engine/install/centos/

https://docs.docker.com/engine/install/fedora/

번호 제목 글쓴이 날짜 조회 수
83 DNS 엔지니어링을 위한 dig 명령어 심층 가이드 미르다테 2026.04.29 11
82 Rocky Linux 고정 라우팅(Static Route) 설정 가이드 미르다테 2026.04.29 13
81 nc 명령어 사용방법 및 다양한 예제 초정밀 실무 가이드 미르다테 2026.04.29 17
80 nc 명령어 사용법(실무 매뉴얼) 미르다테 2026.04.29 15
79 ddrescue 실무 매뉴얼 file 미르다테 2026.04.15 31
78 Redis 적용한 라이믹스 Rhymix 시놀로지에 설치해보기 미르다테 2025.09.19 93
77 Rocky Linux 특정 패키지 업데이트를 비활성화하는 방법 미르다테 2025.07.07 154
76 사용자 계정의 sudo명령어 사용 시 비밀번호 없이 사용하게 하는 설정(tee 명령어) 미르다테 2025.06.27 233
75 Rocky Linux 및 NetworkManager를 사용한 정적 경로 설정 미르다테 2025.04.03 222
74 Ubuntu 22.04 LTS 패키지 업데이트 시 오류 해결 방법 미르다테 2025.02.19 297
73 우분투 리눅스(Ubuntu Linux)에서 Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. 오류 해결 방법 미르다테 2025.02.09 405
72 연속적으로 명령 실행시키기 (;과 &와 &&의 차이) 미르다테 2025.02.03 170
71 내 공인IP 확인하기(스크립트) 미르다테 2025.02.02 171
70 리눅스 네트워크 설정(Debian 계열, Ubuntu) 미르다테 2025.01.16 212
69 우분투(Ubuntu) 리눅스 apt 패키지 설치 이력 확인 미르다테 2025.01.14 442
68 Rocky Linux 9 고정 라우팅 경로 설정 방법 미르다테 2025.01.10 271
67 Rocky Linux 9에 Webmin 설치하는 방법 미르다테 2025.01.07 240
66 라이믹스(Rhymix) 애드온 '링크 프리뷰' 설치정보 미르다테 2025.01.06 264
65 Rocky Linux 9에 FFmpeg를 설치하는 방법 미르다테 2025.01.06 240
64 Ubuntu 24.04에 Webmin을 설치하는 방법 미르다테 2024.12.31 244
위로