(My environment is Mint7.1, equivalent to Ubuntu14.04)
1, first, according to the installation instructions on the docker.com to install Docker, here is not repeated, reference:
https://docs.docker.com/installation/ubuntulinux/
2, perform
$ docker Version
You may encounter the following error:
FATA[0000] Get http:///var/run/docker.sock/v1.17/version:dial Unix/var/run/docker.sock:permission denied. is trying to connect to a tls-enabled daemon without TLS?
This may be due to the fact that the current user has not been added to the Docker group to perform
$ sudo gpasswd-a ${user} docker
Restart the machine to check if the current user is in the Docker group
$ groups
Perform a command restart service
$ sudo service Docker.io restart
Reference
http://stackoverflow.com/questions/27782595/starting-docker-containers-from-php
http://dev-maziarz.blogspot.com/
3, execute again
$ docker Version
You may encounter the following error:
FATA[0000] Cannot connect to the Docker daemon. Is ' docker-d ' running on this host?
This may be caused by the absence of the installation of AppArmor, which performs
Apt-get Install AppArmor
Restart your computer to perform:
$ PS-EF | grep Docker
Root 4577 1 0 21:44? 00:00:00/usr/bin/docker-d
Alex 4608 2574 0 21:45 pts/0 00:00:00 grep--color=auto Docker
The above output indicates that the installation was successful.
Reference:
http://www.tekhead.org/blog/2014/09/installing-docker-on-ubuntu-quick-fix/
https://github.com/docker/docker/issues/9745
Ubuntu on Docker Mount Trouble Shooting