'docker install centos7 docker'에 해당되는 글 1건

반응형

centos7 기준 docker설치

1 .  아래 명령어로 실행( 가장 최신의 docker 버전을 설치해줌

curl -s https://get.docker.com | sudo sh

 

2.  systemctl enable docker.service

 - 서버 부팅시 자동으로 docker 서비스가 시작되도록 설정

3. service docker start

 - 설치한 도커서비스 시작

 

4. systemctl status docker.service

 - 도커서비스 상태 확인

[root@localhost /home]#  systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: active (running) since 화 2020-12-08 12:00:56 KST; 15min ago
     Docs: http://docs.docker.com
 Main PID: 3839 (dockerd-current)
   CGroup: /system.slice/docker.service
           ├─3839 /usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-c...
           └─3853 /usr/bin/docker-containerd-current -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libcontainerd/containerd --shim docker-containerd-...

12월 08 12:00:56 localhost.localdomain dockerd-current[3839]: time="2020-12-08T12:00:56.538619829+09:00" level=info msg="Loading containers: start."
12월 08 12:00:56 localhost.localdomain dockerd-current[3839]: time="2020-12-08T12:00:56.550207450+09:00" level=warning msg="Running modprobe bridge br_netfilter failed with message: modprobe: WARNING: Module br_netfilter not found.\n...
12월 08 12:00:56 localhost.localdomain dockerd-current[3839]: time="2020-12-08T12:00:56.554882918+09:00" level=info msg="Firewalld running: false"
12월 08 12:00:56 localhost.localdomain dockerd-current[3839]: time="2020-12-08T12:00:56.602266038+09:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be...red IP address"
12월 08 12:00:56 localhost.localdomain dockerd-current[3839]: time="2020-12-08T12:00:56.631344401+09:00" level=info msg="Loading containers: done."
12월 08 12:00:56 localhost.localdomain dockerd-current[3839]: time="2020-12-08T12:00:56.632363121+09:00" level=warning msg="Not using native diff for overlay2, this may cause degraded performance for building images: o...r later to fix"
12월 08 12:00:56 localhost.localdomain dockerd-current[3839]: time="2020-12-08T12:00:56.637499293+09:00" level=info msg="Daemon has completed initialization"
12월 08 12:00:56 localhost.localdomain dockerd-current[3839]: time="2020-12-08T12:00:56.637517968+09:00" level=info msg="Docker daemon" commit="0be3e21/1.13.1" graphdriver=overlay2 version=1.13.1
12월 08 12:00:56 localhost.localdomain dockerd-current[3839]: time="2020-12-08T12:00:56.642381158+09:00" level=info msg="API listen on /var/run/docker.sock"
12월 08 12:00:56 localhost.localdomain systemd[1]: Started Docker Application Container Engine.
Hint: Some lines were ellipsized, use -l to show in full.

 

5- docker version

[root@localhost ~/download/docker]# docker -v
Docker version 19.03.14, build 5eb3275d40
[root@localhost ~/download/docker]#

 

6. docker pull centos

- centos기준으로 설치 했음으로 docker centos전용 image 다운받기

 

7 docker images

[root@localhost /home]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
docker.io/centos    latest              300e315adb2f        2 hours ago         209 MB
반응형

'Docker' 카테고리의 다른 글

docker rabbitmq 설치  (0) 2021.01.15
docker , redis설치  (0) 2021.01.14
docker 실행 자동화  (0) 2020.12.11
도커허브에서 빌드된 이미지 다운로드  (0) 2020.12.11
도커허브 로그인  (0) 2020.12.11
블로그 이미지

visualp

c#, java

,