Cara install docker di ubuntu

docker
berikut list ubuntu yang di support oleh docker

Ubuntu Xenial 16.04 (LTS)
Ubuntu Wily 15.10
Ubuntu Trusty 14.04 (LTS)
Ubuntu Precise 12.04 (LTS)

– Pastikan OS anda 64-bit dan kernel anda telah 3.10
– update apt-source anda
$ sudo apt-get update
$ sudo apt-get install apt-transport-https ca-certificates
– add GPG key
$ sudo apt-key adv \
–keyserver hkp://ha.pool.sks-keyservers.net:80 \
–recv-keys 58118E89F3A912897C070ADBF76221572C52609D

– cocokkan versi ubuntu anda

Ubuntu version Repository
Precise 12.04 (LTS) deb https://apt.dockerproject.org/repo ubuntu-precise main
Trusty 14.04 (LTS) deb https://apt.dockerproject.org/repo ubuntu-trusty main
Wily 15.10 deb https://apt.dockerproject.org/repo ubuntu-wily main
Xenial 16.04 (LTS) deb https://apt.dockerproject.org/repo ubuntu-xenial main

– jalankan perintah berikut

$ echo “” | sudo tee /etc/apt/sources.list.d/docker.list

– kemudian jalankan update
$ sudo apt-get update

– running cmd sbb :

$ apt-cache policy docker-engine

docker-engine:
Installed: 1.12.2-0~trusty
Candidate: 1.12.2-0~trusty
Version table:
*** 1.12.2-0~trusty 0
500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages
100 /var/lib/dpkg/status
1.12.1-0~trusty 0
500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages
1.12.0-0~trusty 0
500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages

Ubuntu Xenial 16.04 (LTS), Wily 15.10, Trusty 14.04 (LTS)

untuk install linux-image-extra-*

$ sudo apt-get update

– install recommend package

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

Install the latest version docker

$ sudo apt-get update

install docker

$ sudo apt-get install docker-engine

start docker daemon

$ sudo service docker start

Leave a Reply

Your email address will not be published. Required fields are marked *