How to install Docker

One way to install Docker is to add its repository and then install it from it. There are a lot of steps that need to be done for this, as seen here.

Since I do not really update packages so often, I prefer downloading the DEB file and installing it manually.

$ sudo dpkg -i your_docker_file.deb
  • Remember to add your username to the docker group:
$ sudo adduser joe docker
  • You will need to logout and login for the group assignment to take effect. If you find that logout-login to be painful, try this trick.

  • Try Docker and see if it works:

$ docker run hello-world

Tried with: Docker 17.09 and Ubuntu 16.04


One thought on “How to install Docker

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.