«   2017/12   »
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Archives
Today
110
Total
1,029,860
관리 메뉴

Blue Breeze

Docker for Ubuntu 본문

가상화/Docker

Docker for Ubuntu

푸른바람 푸른_바람 2017.07.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 관리 저장소

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
신고

'가상화 > 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
0 Comments
댓글쓰기 폼