Docker Hello world

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.

container.png

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.png

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

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.

hello-world.png

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

docker_run.png

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