Ubuntu 16.04 Docker 설치

Docker 2016.06.14 11:19 Posted by 김한별 behonestar


1. Docker 저장소 GPG key 추가

sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D


2. Docker 저장소 추가

echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list


3. APT 업데이트

sudo apt-get update


4. Docker, Docker-compose 설치

sudo apt-get install -y docker-engine

sudo apt-get install -y docker-compose


5. sudo 없이 명령어 사용하도록 설정

sudo usermod -aG docker $(whoami)


6. 명령어 실행

docker -v

docker-compose -v