1. Package index update
$ sudo apt-get update
2. Docker Engine 설치
$ sudo apt-get install docker-engine
다음과 같이 오류 발생시(internet Install이 안되는 경우) deb 수동 설치
apt-transport-https : Depends: libapt-pkg4.12 (>= 0.8.16~exp9) but it is not installable libc6-amd64:i386 : Depends: libc6:i386 (= 2.28-0ubuntu1) but it is not going to be installed libcurl3 : Depends: librtmp0 (>= 2.3) but it is not installable libhwloc5 : Depends: libltdl7 (>= 2.4.6) but 2.4.2-1.7ubuntu1 is to be installed Recommends: libhwloc-plugins but it is not going to be installed libltdl-dev : Depends: libltdl7 (= 2.4.6-0.1) but 2.4.2-1.7ubuntu1 is to be installed Recommends: libtool but it is not going to be installed libsystemd-dev : Depends: libsystemd0 (= 229-4ubuntu21.10) but 229-4ubuntu21.1 is to be installed libsystemd-journal0 : Depends: libcgmanager0 but it is not going to be installed Depends: libgcrypt11 (>= 1.5.1) but it is not installable Depends: libnih-dbus1 (>= 1.0.0) but it is not going to be installed linux-image-extra-4.4.0-139-generic : Depends: linux-image-4.4.0-139-generic but it is not going to be installed linux-image-generic : Depends: linux-image-4.4.0-139-generic but it is not going to be installed Recommends: thermald but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution) … |
https://ubuntu.pkgs.org/ 에서 필요 lib 검색 후 install
설치 방법
$> dpkg –i {package 명}
$ dpkg -i linux-image-4.4.0-139-generic_4.4.0-139.165_amd64.deb
Dependency 없이 Docker engine이 설치될 때까지 deb file을 찾아서 설치해 줌.
3. 설치 완료 후 확인
$ docker -v
4. Docker Daemon 시작
$ sudo service docker start
DNS server 설정
1.
sudo
권한으로 로그인한다
2.
/etc/default/docker
파일을 열어서
아래 설정을 추가합니다.
3.
DOCKER_OPTS="--dns 8.8.8.8"
4. multiple DNS server 설정도 가능하므로 내부에서 사용하는 DNS Server가 있다면 아래와 같이 설정한다.
5.
--dns 8.8.8.8 --dns 192.168.1.1
6. Docker daemon을 재시작한다.
7.
$ sudo service docker restart
부팅 시 Docker 자동으로 실행
부팅할 때 Docker daemon이 자동으로 실행되게 하려면 아래 명령을 실행한다.
$ sudo systemctl enable docker