DEV Community

Cover image for Docker Hello world
Pratap kute
Pratap kute

Posted on

Docker Hello world

Docker

Docker is an open-source containerisation platform. It enables developers to package applications into containers standardized executable components combining application
source code with the operating system (OS) libraries and dependencies required to run that code in any environment

containerisation: It’s Linux kernel virtualization where you run applications in isolated user spaces called containers that use the same shared operating system.

Linux container

Docker ecosystem

  1. Docker client
  2. Docker server
  3. Docker Machine
  4. Docker image
  5. Docker hub
  6. Docker compose
  7. Docker swarm

Docker CLI

Note: To install docker on your machine follow these instructions.

Hello world

Now let's do hello world so when you type the following command in that hello-world refers to image (docker image)

docker run hello-world
Enter fullscreen mode Exit fullscreen mode

Docker CLI takes that command and passes it to the docker server.

If that image is not on your computer (Image cache), it reaches out to the docker hub. docker pulls that image and creates a container out of it.

Docker hello world

Pay attention to what steps docker took to print the hello world.

Docker hello world cli

Docker has revolutionized how we build, test and deploy the software, In the next article I will explain how to build your own Docker images and deploy them.

Top comments (0)