2015年11月25日 星期三

Docker install on Ubuntu


OS: Ubuntu 14.04(LTS)

Add GPG Key

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

Create Docker Repo

echo “deb https://apt.dockerproject.org/repo ubuntu-trusty main” > /etc/apt/sources.list.d/docker.list

Update the apt package index

apt-get update

Purge the old repo if it exists

apt-get purge lxc-docker
Actuaully, you can skip this step, if your system is new installed, lxc-docker this package isn’t exist.

Verify that apt is pulling from the right repository

apt-cache policy docker-engine

Install Docker

apt-get install docker-engine && sudo shutdown -r now
Now you can play docker now…enjoy it~!!

Reference