Setting up Docker-CE on Ubuntu 16.04 Xenial

This post assume that you know what docker is, if not please check the link here to know more about docker. Currently docker has two variants Docker-CE (Community Edition) and Docker-EE (Enterprise edition). In this post I am installing Docker-CE on to my Ubuntu 16.04 Xenial Desktop. We test the installation by simply running a hello world docker.

Step-1: Remove previous versions of docker if any

We have to remove previous versions of docker if they are already installed. Previous versions are called as “docker” and “docker-engine”

$ sudo apt-get remove docker docker-engine

Step-2: Allow apt to use repositories over https

Install the packages required to allow “apt” to use a repository over https.