Gangmax Blog

How to install Docker on Ubuntu from PPA

If when you run “wget -qO- https://get.docker.com/ | sh” command to install Docker on your Ubuntu 14.04 as described in the offical document, and met the following problem like me:

1
2
3
4
5
6
7
8
9
10
~$ wget -qO- https://get.docker.com/ | sh
apparmor is enabled in the kernel and apparmor utils were already installed
/sbin/apparmor_parser
+ [ https://get.docker.com/ = https://get.docker.com/ ]
+ sudo -E sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.X1DXDZAunN --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
gpg: requesting key A88D21E9 from hkp server p80.pool.sks-keyservers.net
gpgkeys: key 36A1D7869245C8950F966E92D8576A8BA88D21E9 can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

you can try the alternative method in the post from here.

1
2
3
4
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get install lxc-docker

Then as described in the Docker official document, you may run the following command to create the “docker” group to make you easier to use Docker:

1
sudo usermod -aG docker testuser

Comments