최신판 |
당신의 편집 |
1번째 줄: |
1번째 줄: |
| ==개요== | | ==개요== |
| ;CentOS 도커 설치 | | ;CentOS 도커 설치 |
| ;CentOS7 docker CE 설치
| |
|
| |
|
| <syntaxhighlight lang='bash'> | | <source lang='bash'> |
| yum install -y yum-utils device-mapper-persistent-data lvm2 | | 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-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo |
| yum install docker-ce | | yum install docker-ce |
| </syntaxhighlight> | | </source> |
| <syntaxhighlight lang='bash'> | | <source lang='bash'> |
| systemctl start docker | | systemctl start docker |
| docker run hello-world | | docker run hello-world |
| </syntaxhighlight> | | </source> |
| | |
| ==실행예시==
| |
| <syntaxhighlight lang='console'>
| |
| 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
| |
| ... (생략)
| |
| </syntaxhighlight>
| |
| <syntaxhighlight lang='console'>
| |
| root@centos7:~# docker -v
| |
| Docker version 19.03.9, build 9d988398e7
| |
| </syntaxhighlight>
| |
| <syntaxhighlight lang='console'>
| |
| 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!
| |
| ... (생략)
| |
| </syntaxhighlight>
| |
|
| |
|
| ==같이 보기== | | ==같이 보기== |
| | * [[우분투 docker 설치]] |
| * [[도커]] | | * [[도커]] |
| * [[리눅스 docker 설치]] ★
| |
|
| |
|
| ==참고== | | ==참고== |
81번째 줄: |
20번째 줄: |
| [[분류: CentOS]] | | [[분류: CentOS]] |
| [[분류: Docker]] | | [[분류: Docker]] |
| [[분류: yum install]]
| |