Docker is a new craze which is quite popular nowadays. I don’t know much before about it but at my internship, I attended a workshop from Dieter Reuter(Docker Captain)and Niclas Mietz from bee42 solutions gmbh.

It was quite fun two days workshop with them and I got to know a lot about it. So let’s get started with Docker.

Before getting started with it, you should install Docker on your machine. Take help from here how to install Docker.

Okay now, your machine has Docker, so now you may be thinking what Docker really is?

Docker is an open platform for building, shipping, and running applications. With Docker, you can manage your infrastructure in the same ways you manage your applications. It’s easy, simple and quite powerful too.

Okay as everyone knows we always start with Hello-world docker container run hello-worldIn the output, you can see that we are doing many things(what Docker doing). But before that, I want to illustrate something regarding Docker Engine.

Docker Engine

Docker is same like your car, it has an engine which manages everything. It also consists a server known as Docker Daemon(thedockerdcommand) which manages everything for the client(Docker CLI). In between, the API handles the request from the client to the server. The server responds accordingly to the client by managing the images, containers, networks, and volumes.

After some theory let’s see the output now,

Hello from Docker!

  1. The docker client contacted to Docker daemon.
  2. The Docker daemon pulled the “hello-world” image from the Docker Hub.
  3. The Docker daemon created a new container from that image which runs theexecutable that produces the output you are currently reading.

  4. The Docker daemon streamed that output to the Docker client, which sent itto your terminal.

That’s it, pretty simple and easy. Enjoy the easiness of it.