To install Docker follow instructions provided on this page. Docker comes with the UI, which we will not consider in this article. We utilize only docker CLI, which comes with this installation as well. You know, like the real hackers 🙂

There are three important Docker components that you should be aware of: Docker container Image, Dockerfile and Docker Engine. Docker container image is a lightweight file-system that includes everything that the application needs to run. It has the system tools and libraries, runtime and the application code. These images are turned into Docker containers once a user runs docker build command, which will be explained in detail in a little while. Once this command is initiated, Docker uses Dockerfile to create a Docker container from Docker Image. This container is then run by the Docker engine. There are a lot of pre-cooked Docker Images available at Docker Hub. For example, if you have a need for a docker image for Ubuntu, you can find it at Docker Hub. Docker image is obtained by initiating command: docker pull image_name. For the purpose of this article, we need three images, so let’s download them right away: