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.
Docker ecosystem
- Docker client
- Docker server
- Docker Machine
- Docker image
- Docker hub
- Docker compose
- Docker swarm
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.
Pay attention to what steps docker took to print the hello world.
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