Install Docker in Ubuntu 12.04 Precise

First make sure you have the latest version and an actual kernel running. Execute theses commands as root:

apt-get update
apt-get dist-upgrade

Then install docker with the following lines as root:

apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb ubuntu-precise main" > /etc/apt/sources.list.d/docker.list
apt-get update
apt-get purge lxc-docker*
apt-cache policy docker-engine
apt-get install docker-engine

After this docker should be up and running. Rry using “docker ps” as root or with sudo.

Leave a Comment