These commands are available for Ubuntu Trusty 14.04 (LTS) (64-bit), if you want more informations about the other versions, go to Docker installation page
sudo apt-get update sudo apt-get install docker.io source /etc/bash_completion.d/docker.io
Docker will be updated by Ubuntu repository, if you want the last version of Docker, you can follow go on this page.
Docker Installation with Ubuntu