Introduction To Docker: A Beginner’s Guide

Mohamed Rifkhan
3 min readFeb 19, 2022

If you are a developer and an active community member, you should come across the name Docker. When I heard about Docker, the first question that came to my mind was, What is a Docker? And why is everyone talking about it? 🤔

In this post, we try to understand the Docker, and through the use and installation cases. So without further ado, let’s dive into it.

What is Docker?

Docker is a tool that narrows the gap between the Development and Deployment phase of a software development cycle.

Think of a time when developers were using their time to make a machine compatible with their codes. They need to install all the dependencies, set up a database, and more. This process was time-consuming, and it required a special person to do these things.

Another situation is, imagine that you have more than one application or web server that you can use that uses different languages ​​and software versions.

Now, you may think that this problem can be solved by using VMs (Virtual Machines) to …

Why Docker?

Virtual Machines makes a copy of the operating system, which will be in the size of GB, and Docker only needs the part you need to use your app. Look at the picture below. It will help you to visualize the difference.

The Docker is like an airtight container that operates independently without interrupting other processes. This is why you can use as many containers as you want at a time. Another advantage is that, Docker containers are sharable. You need to use a few docker commands, and the application is ready to run, You do not need to invest time in setting the environment. Now, the days are gone when developers use the excuse that it “works on my machine”.

Installing Docker.

  1. Go to docker official page
  2. Signup or log in.
  3. Download Docker Desktop.
  4. Install and login to Docker Desktop.
  5. Open Terminal and run docker command.

You will see something like this.

Congratulations, you have successfully installed docker, and it is ready to use now.

In the next post, we will learn how to use official docker images and other commands.

Until then, Bye.

--

--

Mohamed Rifkhan

💻 DevOps Engineer | 🎓 Bsc in Network System Engineering | 🚀 Always learning and pushing boundaries