How to install Docker on Ubuntu 14.04 LTS

Login to your Ubuntu server with root user using your favorite SSH client

Let’s first update the operating system with all the latest packages with the command

sudo apt-get update

 

In order to install Docker , we will first need to install the Docker Package with the command

apt-get -y install docker.io

 

Configure the proper path and links in order to make sure that docker will work with the commands

ln -sf /usr/bin/docker.io /usr/local/bin/docker
sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker

 

Enable the Docker to start with the server boot with the command

update-rc.d docker.io defaults

 

Download the docker container with the commands

docker pull Ubuntu
docker run -i -t ubuntu /bin/bash