CentOS7 docker 설치

(CentOS7 docker CE 설치에서 넘어옴)

1 개요[ | ]

CentOS 도커 설치
CentOS7 docker CE 설치
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce
systemctl start docker
docker run hello-world

2 실행예시[ | ]

root@centos7:~# yum install docker-ce
... (생략)
Dependencies Resolved

================================================================================
 Package                 Arch   Version                  Repository        Size
================================================================================
Installing:
 docker-ce               x86_64 3:19.03.9-3.el7          docker-ce-stable  24 M
Installing for dependencies:
 audit-libs-python       x86_64 2.8.5-4.el7              base              76 k
 checkpolicy             x86_64 2.5-8.el7                base             295 k
 container-selinux       noarch 2:2.119.1-1.c57a6f9.el7  extras            40 k
 containerd.io           x86_64 1.2.13-3.2.el7           docker-ce-stable  25 M
 docker-ce-cli           x86_64 1:19.03.9-3.el7          docker-ce-stable  38 M
 libcgroup               x86_64 0.41-21.el7              base              66 k
 libsemanage-python      x86_64 2.5-14.el7               base             113 k
 policycoreutils-python  x86_64 2.5-34.el7               base             457 k
 python-IPy              noarch 0.75-6.el7               base              32 k
 setools-libs            x86_64 3.3.8-4.el7              base             620 k
Updating for dependencies:
 audit                   x86_64 2.8.5-4.el7              base             256 k
 audit-libs              x86_64 2.8.5-4.el7              base             102 k
 libselinux              x86_64 2.5-15.el7               base             162 k
 libselinux-python       x86_64 2.5-15.el7               base             236 k
 libselinux-utils        x86_64 2.5-15.el7               base             151 k
 libsemanage             x86_64 2.5-14.el7               base             151 k
 libsepol                x86_64 2.5-10.el7               base             297 k
 policycoreutils         x86_64 2.5-34.el7               base             917 k
 selinux-policy          noarch 3.13.1-266.el7           base             497 k
 selinux-policy-targeted noarch 3.13.1-266.el7           base             7.0 M

Transaction Summary
================================================================================
Install  1 Package  (+10 Dependent packages)
Upgrade             ( 10 Dependent packages)

Total download size: 99 M
Is this ok [y/d/N]: y
... (생략)
root@centos7:~# docker -v
Docker version 19.03.9, build 9d988398e7
root@centos7:~# systemctl start docker
root@centos7:~# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
0e03bdcc26d7: Pull complete
Digest: sha256:6a65f928fb91fcfbc963f7aa6d57c8eeb426ad9a20c7ee045538ef34847f44f1
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
... (생략)

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}