티스토리 뷰
설치에 필요한 명령어를 중심으로 작성하였으며,
자세한 내용은 공식 홈페이지 [ Install Docker Engine on CentOS ] 에서 확인 바랍니다.
1. Uninstall old versions
# sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
2. Install using the repository
# sudo yum install -y yum-utils
# sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
3. Install Docker Engine
# yum install docker-ce docker-ce-cli containerd.io
4. Docker 버전별 설치 내역
# yum list docker-ce --showduplicates | sort -r
* updates: d36uatko69830t.cloudfront.net
Loading mirror speeds from cached hostfile
Loaded plugins: fastestmirror
Installed Packages
* extras: d36uatko69830t.cloudfront.net
docker-ce.x86_64 3:20.10.5-3.el7 docker-ce-stable
docker-ce.x86_64 3:20.10.5-3.el7 @docker-ce-stable
docker-ce.x86_64 3:20.10.4-3.el7 docker-ce-stable
docker-ce.x86_64 3:20.10.3-3.el7 docker-ce-stable
docker-ce.x86_64 3:20.10.2-3.el7 docker-ce-stable
docker-ce.x86_64 3:20.10.1-3.el7 docker-ce-stable
5. 설치
# yum install docker-ce-<VERSION_STRING> docker-ce-cli-<VERSION_STRING> containerd.io
# yum install docker-ce-20.10.5 docker-ce-cli-20.10.5 containerd.io
6. 도커버전확인
# docker --version
Docker version 20.10.5, build 55c4c88
7. 도커 시작
# systemctl start docker
# systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2021-03-19 14:48:02 UTC; 1min 36s ago
Docs: https://docs.docker.com
Main PID: 14315 (dockerd)
Tasks: 8
Memory: 44.0M
CGroup: /system.slice/docker.service
└─14315 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
참고
- docs.docker.com/engine/install/centos/
'프로그래밍 > Docker' 카테고리의 다른 글
Docker 이미지 이름 재설정 방법 (0) | 2021.09.10 |
---|---|
[Docker] Container SSL인증서 - Let`s Encrypt 적용 (0) | 2021.03.24 |
[Docker] container crontab 설정 (0) | 2021.03.24 |
[Docker] 기본 명령어 정리 (0) | 2021.03.21 |
[Docker] Mac M1 - Docker 개발환경 설정 (0) | 2021.03.04 |