도커 공부하면서 기초부터 정리해보겠습니다.
■ Docker 공식 홈페이지 메뉴얼 : https://docs.docker.com/engine/install/centos/
[설치환경]
OS : CentOS7
1. Yum-utils 업데이트
[root@docker-test ~]# yum install -y yum-utils Loaded plugins: fastestmirror Determining fastest mirrors epel/x86_64/metalink | 7.9 kB 00:00:00 * base: mirror.kakao.com * epel: mirror-jp.misakamikoto.network * extras: mirror.kakao.com * updates: mirror.kakao.com ..생략 |
2. Docker-ce repo 추가
[root@docker-test ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo Loaded plugins: fastestmirror adding repo from: https://download.docker.com/linux/centos/docker-ce.repo grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo repo saved to /etc/yum.repos.d/docker-ce.repo |
3. Docker Install
[root@docker-test ~]# yum install -y yum-utils Loaded plugins: fastestmirror Determining fastest mirrors epel/x86_64/metalink | 7.9 kB 00:00:00 * base: mirror.kakao.com * epel: mirror-jp.misakamikoto.network * extras: mirror.kakao.com * updates: mirror.kakao.com base | 3.6 kB 00:00:00 docker-ce-stable | 3.5 kB 00:00:00 epel | 4.7 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 ..생략 |
4.Docker 설치 확인
■ Docker version 확인 [root@docker-test ~]# docker version Client: Version: 18.09.8 API version: 1.39 Go version: go1.10.8 Git commit: 0dd43dd87f Built: Wed Jul 17 17:40:31 2019 OS/Arch: linux/amd64 Experimental: false Server: Docker Engine - Community Engine: Version: 18.09.8 API version: 1.39 (minimum version 1.12) Go version: go1.10.8 Git commit: 0dd43dd Built: Wed Jul 17 17:10:42 2019 OS/Arch: linux/amd64 Experimental: false ■ Docker 서비스 실행 [root@docker-test ~]# systemctl start docker ■ Docker 서비스 실행 확인 [root@docker-test ~]# 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 Thu 2022-12-15 15:12:50 KST; 5s ago Docs: https://docs.docker.com Main PID: 30883 (dockerd) Tasks: 18 Memory: 94.3M CGroup: /system.slice/docker.service └─30883 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock Dec 15 15:12:50 docker-test dockerd[30883]: time="2022-12-15T15:12:50.444612829+09:00" level=warning msg="[graphdriver] WARNING: the ...elease" Dec 15 15:12:50 docker-test dockerd[30883]: time="2022-12-15T15:12:50.473319483+09:00" level=info msg="Graph migration to content-add...econds" Dec 15 15:12:50 docker-test dockerd[30883]: time="2022-12-15T15:12:50.473935577+09:00" level=info msg="Loading containers: start." Dec 15 15:12:50 docker-test dockerd[30883]: time="2022-12-15T15:12:50.568594198+09:00" level=info msg="Default bridge (docker0) is as...ddress" Dec 15 15:12:50 docker-test dockerd[30883]: time="2022-12-15T15:12:50.602040201+09:00" level=info msg="Loading containers: done." Dec 15 15:12:50 docker-test dockerd[30883]: time="2022-12-15T15:12:50.606250316+09:00" level=warning msg="failed to retrieve runc ver....3.1\n" Dec 15 15:12:50 docker-test dockerd[30883]: time="2022-12-15T15:12:50.612225972+09:00" level=info msg="Docker daemon" commit=0dd43dd ...18.09.8 Dec 15 15:12:50 docker-test dockerd[30883]: time="2022-12-15T15:12:50.612314320+09:00" level=info msg="Daemon has completed initialization" Dec 15 15:12:50 docker-test dockerd[30883]: time="2022-12-15T15:12:50.630973970+09:00" level=info msg="API listen on /var/run/docker.sock" Dec 15 15:12:50 docker-test systemd[1]: Started Docker Application Container Engine. Hint: Some lines were ellipsized, use -l to show in full. |
도커 설치는 간단하구만요!
'Cloud or container > Docker' 카테고리의 다른 글
[Docker] Container 생성 및 삭제 (2) (0) | 2022.12.15 |
---|
댓글