ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • centos 6에 docker를 설치해보자
    카테고리 없음 2023. 4. 18. 12:31

    docker

    centos6.5에 도커를 설치 해보겠다. 잘되길 EPEL Repository 추가해야된다.
    yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    
    .....
    Is this ok [y/N]: y
    Is this ok [y/N]: y
    Downloading Packages:
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing : epel-release-6-8.noarch                                                                                                      1/1 
      Verifying  : epel-release-6-8.noarch                                                                                                      1/1 
    
    Installed:
      epel-release.noarch 0:6-8                                                                                                                     
    
    Complete!
    
    이렇게 나왔다면 일단 성공!
    yum update -y
    
    업데이트 해주고
    yum install docker-io
    
    ...
    Installed:
      docker-io.x86_64 0:1.7.1-2.el6                                                
    
    Dependency Installed:
      bridge-utils.x86_64 0:1.2-10.el6                                              
      device-mapper.x86_64 0:1.02.95-3.el6_7.4                                      
      device-mapper-libs.x86_64 0:1.02.95-3.el6_7.4                                 
      libcgroup.x86_64 0:0.40.rc1-16.el6                                            
      libudev.x86_64 0:147-2.63.el6_7.1                                             
      lua-alt-getopt.noarch 0:0.7.0-1.el6                                           
      lua-filesystem.x86_64 0:1.4.2-1.el6                                           
      lua-lxc.x86_64 0:1.0.8-1.el6                                                  
      lxc.x86_64 0:1.0.8-1.el6                                                      
      lxc-libs.x86_64 0:1.0.8-1.el6                                                 
    
    Complete!
    
    커널을 업데이트 해야된다. 실행은 되는데 경고가 뜬다.
    yum install http://www.elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm
    yum --enablerepo=elrepo-kernel install kernel-ml
    
    그런다음에 재부팅을하자
    reboot
    
    도커를 실행하자
    service docker start
    
    그런다음에 도커의 버전을 확인해보자
    docker version
    
    Client version: 1.7.1
    Client API version: 1.19
    Go version (client): go1.4.2
    Git commit (client): 786b29d/1.7.1
    OS/Arch (client): linux/amd64
    Server version: 1.7.1
    Server API version: 1.19
    Go version (server): go1.4.2
    Git commit (server): 786b29d/1.7.1
    OS/Arch (server): linux/amd64
    
    ifconfig
    
    docker0   Link encap:Ethernet  HWaddr BE:03:86:85:83:B0  
              inet addr:172.17.42.1  Bcast:0.0.0.0  Mask:255.255.0.0
              inet6 addr: fe80::bc03:86ff:fe85:83b0/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:0 (0.0 b)  TX bytes:468 (468.0 b)
    
    일단 설치는 된거 같다.

    댓글

Designed by Tistory.