도커 Docker 설치 하기 - CentOS-6.6

CentOS 6.6 에 Docker를 설치하는 방법에 대해 알아봅니다.
로컬 PC라면 boot2docker를 설치해도 무방 하지만 테스트및 개발 전용 머신이나 전용 PC상의 CentOS 리눅스 서버에 docker를 설치하는 것을 가정합니다.

설치 명령어 정리

yum install epel-release
yum -y remove docker
yum install docker-io
docker pull centos:6
docker images

설치

먼저 EPEL 레포지터리를 활성화 시킵니다. 아직 EPEL Repository가 설치되어 있지 않다면 EPEL installation instructions 를 참고해 주세요.

간단하게 아래 명령어로 EPEL을 사용 할 수 있습니다. epel-release는 CentOS Extras repository에 포함되어 있습니다.

[root@vm ~]$ yum install epel-release

CentOS-6의 경우 시스템 트레이 응용프로그램 과 실행파일의 패키지 이름이 충돌 할 수 있으니 docker-io를 설치하기 위해 docker 패키지를 먼저 삭제해 줍니다.

[root@vm ~]$ yum -y remove docker

그다음 docker-io 패키지를 설치합니다.

[root@vm ~]$ yum install docker-io

docker 동작 확인

docker의 CentOS 6버전을 다운로드 합니다.

[root@vm ~]$ docker pull centos:6
Pulling repository centos
b9aeeaeb5e17: Download complete
f1b10cd84249: Download complete
Status: Downloaded newer image for centos:6

다운 받은 CentOS 이미지가 있는지 확인합니다.

[root@vm ~]$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
centos              6                   b9aeeaeb5e17        5 weeks ago         202.6 MB
centos              centos6             b9aeeaeb5e17        5 weeks ago         202.6 MB

'Docker' 카테고리의 다른 글

Docker Machine  (0) 2015.07.21
맥 OSX에서 boot2docker의 Docker 컨테이너와의 공유 폴더(볼륨) 사용  (0) 2015.07.20
Mac 일반 터미널에서 Docker 사용하기기  (0) 2015.05.13
Docker  (0) 2015.05.13
Posted by dewnine
,