Install Docker on Ubuntu

adamkdean

Adam K Dean

Posted on May 28, 2014

Install Docker on Ubuntu

To install Docker on Ubuntu 14.04 LTS, run the following commands:

$ sudo apt-get install docker.io
$ sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker
Enter fullscreen mode Exit fullscreen mode

Once that is done, add your user to the docker group:

$ sudo usermod -a -G docker adam
Enter fullscreen mode Exit fullscreen mode

After this, you may need to logout and login again. I had an issue where I recieved an error like this:

$ docker ps
dial unix /var/run/docker.sock permission denied
Enter fullscreen mode Exit fullscreen mode

Once you've logged out and back in again, you can test docker is installed and works like so;

$ docker version
Client version: 0.9.1
Go version (client): go1.2.1
Git commit (client): 3600720
Server version: 0.9.1
Git commit (server): 3600720
Go version (server): go1.2.1
Last stable version: 0.11.1
Enter fullscreen mode Exit fullscreen mode

Be sure to read up more at Getting Started

💖 💪 🙅 🚩
adamkdean
Adam K Dean

Posted on May 28, 2014

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Linux - I am Love with Terminal
linux Linux - I am Love with Terminal

August 22, 2020

Install Docker on Ubuntu
linux Install Docker on Ubuntu

May 28, 2014