Install Docker Engine on Ubuntu
Uninstall old versions
Install using the apt repository
Add Docker's official GPG key
Add the repository to Apt sources
Install the Docker packages
Install the latest version
Manage Docker as a non-root user
Add user to the docker
group
Activate the changes to groups
Or just log out and log back in.
Verify that docker can be runned without sudo
On Ubuntu, the Docker daemon starts on boot by default.