ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Docker for Ubuntu
    virtual/Docker 2017. 7. 29. 17:46

    우분투 확연 Docker

    APT 저장소

    sudo apt-get update
    sudo apt-get install docker.io
    source /etc/bash_completion.d/docker
    
    sudo docker version
    

    Docker 관리 저장소 shell 명령어 다운로드 설치

    curl -sSL https://get.docker.com/ | sudo sh
    

    Docker 업그레이드

    sudo apt-get update && sudo apt-get upgrade
    

    Docker 사용 유저권한 부여

    sudo gpasswd -a {username} docker
    # logout after new login
    docker ps
    


    Docker CE

    Remove Old Docker

    sudo apt-get remove docker docker-engine docker.io
    

    Trusty 14.04에 권장되는 추가 패키지

    sudo apt-get update
    
    sudo apt-get install \
        linux-image-extra-$(uname -r) \
        linux-image-extra-virtual
    

    Docker CE Install

    #Update the apt package index:
    sudo apt-get update
    
    # Install packages to allow apt to use a repository over HTTPS:
     sudo apt-get install \
        apt-transport-https \
        ca-certificates \
        curl \
        software-properties-common
    
    
    # Add Docker’s official GPG key:
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    
    sudo apt-key fingerprint 0EBFCD88
    
    # pub   4096R/0EBFCD88 2017-02-22
    #      Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
    #uid                  Docker Release (CE deb) 
    #sub   4096R/F273FCD8 2017-02-22
    
    
    # 저장소 등록
    # amd64:
    sudo add-apt-repository \
       "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
       $(lsb_release -cs) \
       stable"
    
    # armhf:
    sudo add-apt-repository \
       "deb [arch=armhf] https://download.docker.com/linux/ubuntu \
       $(lsb_release -cs) \
       stable"
    
    # s390x:
    sudo add-apt-repository \
       "deb [arch=s390x] https://download.docker.com/linux/ubuntu \
       $(lsb_release -cs) \
       stable"
    
    
    # 설치
    sudo apt-get update
    sudo apt-get install docker-ce
    
    # 사용가능한 버전 확인
    apt-cache madison docker-ce
    # docker-ce | 17.06.0~ce-0~ubuntu | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
    
    # 가능한 버전 설치
    sudo apt-get install docker-ce=
    
    # hello-world 이미지를 실행하여 Docker CE가 올바르게 설치되었는지 확인.
    sudo docker run hello-world
    
    # 업그레이드
    sudo apt-get update
    

    Package 로 설치

    # https://download.docker.com/linux/ubuntu/dists/
    
    sudo dpkg -i /path/to/package.deb
    
    sudo docker run hello-world
    


    'virtual > Docker' 카테고리의 다른 글

    Docker for Linux 일반계정 사용  (0) 2017.08.01
    Docker for CentOS7  (0) 2017.07.31
    Docker for Ubuntu  (0) 2017.07.29
    Docker 치트 시트  (0) 2016.08.10
    Docker Kitematic / ToolBox  (0) 2016.08.10
    Docker for Mac/Windows  (0) 2016.08.09

    TAG

    댓글 0

Designed by Tistory.