2015/04/26

우분투에 Docker 최신 버전 설치 방법

http://kiros33.blog.me/220342726618


Revision History
2015/04/27 11:52:07 - 최초 작성 

Home Page
https://www.docker.com/

Reference Page
Installation Guides - https://docs.docker.com/installation/


우분투에 Docker 최신 버전 설치 방법

우분투 14.04.1에서 Repository를 통해 업데이트하면 1.0 대 초기 버전이 설치됩니다. 안되는게 너무 많아요 -_-

도커 사이트의 우분투 페이지를 보면 아주 간단하게 (12와 13대는 사전 설치가 좀 있음) wget으로 sh 다운로드 받아 알아서 척척척 됩니다.

설치 전 버전
# docker -v
Docker version 1.0.1, build 990021a


설치 후 버전
# docker -v
Docker version 1.6.0, build 4749651


설치 로그입니다.

# wget -qO- https://get.docker.com/ | sh
Warning: "docker" or "lxc-docker" command appears to already exist.
Please ensure that you do not already have docker installed.
You may press Ctrl+C now to abort this process and rectify this situation.
+ sleep 20
apparmor is enabled in the kernel and apparmor utils were already installed
/sbin/apparmor_parser
+ [ https://get.docker.com/ = https://get.docker.com/ ]
+ sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.uGbLpzJOc9 --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
gpg: requesting key A88D21E9 from hkp server p80.pool.sks-keyservers.net
gpg: key A88D21E9: public key "Docker Release Tool (releasedocker) <docker@dotcloud.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ sh -c echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q lxc-docker
Ign http://security.ubuntu.com trusty-security InRelease
Hit http://security.ubuntu.com trusty-security Release.gpg
Hit http://security.ubuntu.com trusty-security Release
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://security.ubuntu.com trusty-security/restricted Sources      
Hit http://security.ubuntu.com trusty-security/universe Sources         
Hit http://security.ubuntu.com trusty-security/multiverse Sources        
Hit http://security.ubuntu.com trusty-security/main amd64 Packages      
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages  
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages   
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages 
Hit http://security.ubuntu.com trusty-security/main i386 Packages         
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages   
Hit http://security.ubuntu.com trusty-security/universe i386 Packages    
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages  
Hit http://security.ubuntu.com trusty-security/main Translation-en        
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en       
Hit http://security.ubuntu.com trusty-security/restricted Translation-en       
Hit http://security.ubuntu.com trusty-security/universe Translation-en         
Get:1 https://get.docker.com docker InRelease                                  
Ign https://get.docker.com docker InRelease                                    
Get:2 https://get.docker.com docker Release                                    
Get:3 https://get.docker.com docker/main amd64 Packages                        
Get:4 https://get.docker.com docker/main i386 Packages                         
Get:5 https://get.docker.com docker/main Translation-en                        
Ign http://ftp.daum.net trusty InRelease                                       
Ign http://ftp.daum.net trusty-updates InRelease                               
Ign http://ftp.daum.net trusty-backports InRelease                             
Hit http://ftp.daum.net trusty Release.gpg                                     
Hit http://ftp.daum.net trusty-updates Release.gpg                             
Hit http://ftp.daum.net trusty-backports Release.gpg                           
Hit http://ftp.daum.net trusty Release                                         
Hit http://ftp.daum.net trusty-updates Release                                 
Hit http://ftp.daum.net trusty-backports Release                               
Hit http://ftp.daum.net trusty/main Sources                                    
Hit http://ftp.daum.net trusty/restricted Sources                              
Hit http://ftp.daum.net trusty/universe Sources                                
Hit http://ftp.daum.net trusty/multiverse Sources                              
Hit http://ftp.daum.net trusty/main amd64 Packages                             
Hit http://ftp.daum.net trusty/restricted amd64 Packages                       
Hit http://ftp.daum.net trusty/universe amd64 Packages                         
Hit http://ftp.daum.net trusty/multiverse amd64 Packages                       
Hit http://ftp.daum.net trusty/main i386 Packages                      
Hit http://ftp.daum.net trusty/restricted i386 Packages                        
Hit http://ftp.daum.net trusty/universe i386 Packages                          
Hit http://ftp.daum.net trusty/multiverse i386 Packages                        
Hit http://ftp.daum.net trusty/main Translation-en                             
Hit http://ftp.daum.net trusty/multiverse Translation-en                       
Hit http://ftp.daum.net trusty/restricted Translation-en                       
Hit http://ftp.daum.net trusty/universe Translation-en                         
Hit http://ftp.daum.net trusty-updates/main Sources                            
Hit http://ftp.daum.net trusty-updates/restricted Sources                      
Hit http://ftp.daum.net trusty-updates/universe Sources                        
Hit http://ftp.daum.net trusty-updates/multiverse Sources                      
Hit http://ftp.daum.net trusty-updates/main amd64 Packages                     
Hit http://ftp.daum.net trusty-updates/restricted amd64 Packages       
Hit http://ftp.daum.net trusty-updates/universe amd64 Packages                 
Hit http://ftp.daum.net trusty-updates/multiverse amd64 Packages               
Hit http://ftp.daum.net trusty-updates/main i386 Packages                      
Hit http://ftp.daum.net trusty-updates/restricted i386 Packages                
Hit http://ftp.daum.net trusty-updates/universe i386 Packages                  
Hit http://ftp.daum.net trusty-updates/multiverse i386 Packages                
Hit http://ftp.daum.net trusty-updates/main Translation-en                     
Hit http://ftp.daum.net trusty-updates/multiverse Translation-en               
Hit http://ftp.daum.net trusty-updates/restricted Translation-en               
Hit http://ftp.daum.net trusty-updates/universe Translation-en                 
Hit http://ftp.daum.net trusty-backports/main Sources                          
Hit http://ftp.daum.net trusty-backports/restricted Sources                    
Hit http://ftp.daum.net trusty-backports/universe Sources                      
Hit http://ftp.daum.net trusty-backports/multiverse Sources                    
Hit http://ftp.daum.net trusty-backports/main amd64 Packages                   
Hit http://ftp.daum.net trusty-backports/restricted amd64 Packages             
Hit http://ftp.daum.net trusty-backports/universe amd64 Packages               
Hit http://ftp.daum.net trusty-backports/multiverse amd64 Packages             
Hit http://ftp.daum.net trusty-backports/main i386 Packages                    
Hit http://ftp.daum.net trusty-backports/restricted i386 Packages              
Hit http://ftp.daum.net trusty-backports/universe i386 Packages                
Hit http://ftp.daum.net trusty-backports/multiverse i386 Packages              
Hit http://ftp.daum.net trusty-backports/main Translation-en                   
Hit http://ftp.daum.net trusty-backports/multiverse Translation-en             
Hit http://ftp.daum.net trusty-backports/restricted Translation-en             
Hit http://ftp.daum.net trusty-backports/universe Translation-en               
Ign https://get.docker.com docker/main Translation-en                          
Fetched 7740 B in 21s (360 B/s)                                                
Reading package lists... Done
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  lxc-docker-1.6.0
The following packages will be REMOVED:
  docker docker.io
The following NEW packages will be installed:
  lxc-docker lxc-docker-1.6.0
0 upgraded, 2 newly installed, 2 to remove and 4 not upgraded.
Need to get 4752 kB of archives.
After this operation, 9172 kB disk space will be freed.
Get:1 https://get.docker.com/ubuntu/ docker/main lxc-docker-1.6.0 amd64 1.6.0 [4750 kB]
Get:2 https://get.docker.com/ubuntu/ docker/main lxc-docker amd64 1.6.0 [2088 B]
Fetched 4752 kB in 11s (406 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 56669 files and directories currently installed.)
Removing docker (1.5-1) ...
Removing docker.io (1.0.1~dfsg1-0ubuntu1~ubuntu0.14.04.1) ...
docker.io stop/waiting
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Selecting previously unselected package lxc-docker-1.6.0.
(Reading database ... 56614 files and directories currently installed.)
Preparing to unpack .../lxc-docker-1.6.0_1.6.0_amd64.deb ...
Unpacking lxc-docker-1.6.0 (1.6.0) ...
Selecting previously unselected package lxc-docker.
Preparing to unpack .../lxc-docker_1.6.0_amd64.deb ...
Unpacking lxc-docker (1.6.0) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up lxc-docker-1.6.0 (1.6.0) ...
docker start/running, process 2958
Processing triggers for ureadahead (0.100.0-16) ...
Setting up lxc-docker (1.6.0) ...
+ sh -c docker version
Client version: 1.6.0
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 4749651
OS/Arch (client): linux/amd64
Server version: 1.6.0
Server API version: 1.18
Go version (server): go1.4.2
Git commit (server): 4749651
OS/Arch (server): linux/amd64

If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

    
  
검색: Docker, 도커, Ubuntu, 우분투, Install, 설치, Upgrade, 업그레이드, Version, 버전, 

댓글 없음:

댓글 쓰기