Docker on Ubuntu virtual machine

To install Docker on Ubuntu you need slightly more than you’ll get from official installation guide.

I tried to put it all together.

Get wget if you don’t have it already

sudo apt-get update
sudo apt-get install wget

Install Docker

wget -qO- https://get.docker.com/ | sh

Finish setup

sudo apt-get -y install lxc
sudo gpasswd -a ${USER} docker
newgrp docker
sudo service docker restart

Optionally install these two dependencies if the above does not work

sudo apt-get -y install apparmor cgroup-lite
sudo service docker restart

ICT