Easiest way to install docker on Ubuntu using following command that you can get from the https://get.docker.com/
This script is meant for quick & easy install via:
$ curl -fsSL https://get.docker.com | sh
or
wget -qO- https://get.docker.com/ | sh
For test builds (ie. release candidates):
$ curl -fsSL https://test.docker.com | sh
or
wget -qO- https://test.docker.com/ | sh
For rc build with experimental feature:
$ curl -fsSL https://experimental.docker.com | sh
or
wget -qO- https://experimental.docker.com/ | sh