CentOS7 docker 설치 편집하기

경고: 로그인하지 않았습니다. 편집을 하면 IP 주소가 공개되게 됩니다. 로그인하거나 계정을 생성하면 편집자가 사용자 이름으로 기록되고, 다른 장점도 있습니다.

편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.

최신판 당신의 편집
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]]

제타위키에서의 모든 기여는 크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0 라이선스로 배포된다는 점을 유의해 주세요(자세한 내용에 대해서는 제타위키:저작권 문서를 읽어주세요). 만약 여기에 동의하지 않는다면 문서를 저장하지 말아 주세요.
또한, 직접 작성했거나 퍼블릭 도메인과 같은 자유 문서에서 가져왔다는 것을 보증해야 합니다. 저작권이 있는 내용을 허가 없이 저장하지 마세요!

취소 편집 도움말 (새 창에서 열림)