Nowadays, using Docker with Microservices is common practice, as it brings isolation, portability, scalability, and more. It will be a surprising for a backend engineer / full-stack engineer not to familiar with Docker (of course, combined with Kubernetes). In the article, I will introduce the core concept of Docker from the practical perspective, whether you are a college student who are interested in leraning Docker or a junior software developer just beginning your career in the software industry, you should be able to grasp the essentils of Docker that you need in practice in 10 minutes by reading the article.
The workflow with Docker in industrial projects
I found the following chart that perfectly explain the workflow with Docker in practice Docker Tutorial for Beginners [FULL COURSE in 3 Hours].

As shown above, the steps of the workflow are (all Docker related terms will be explained in the next section):
- After you complete the application development and commit the code to Git, Jenkins will be notified via webhooks
- Jenkins will buid the docker images according to the dockerfile provide
- Jenkins will push the built images to the Docker repository, like Docker Hub or AWS ECR (Elastic Container Registry)
- The server will pull the images from the Docker repository, then create and run containers according to the Docker Compose files (*compose.yaml files)
The Core Concepts of Docker
In the above workflow, I mentioned many essetianls in Docker. In this section, I will explain them in details.
Docker Sever (Docker Deamon)
It’s responsible for managing Docker containers, images, networks, and volumes. It is run on the same machine where Docker is installed. The Docker Client will send all requests to Docker Server.
Docker Client (CLI)
The Docker Client is the interface that users interact with when using Docker.
Docker Hub
Docker Hub is a Docker Repository. It is the default public registry for Docker images, created and maintained by Docker, Inc.
Docker Container
An instance of an image is called a container. It is the running image.
Docker Image
Stopped container. Docker image are read-only layers, and the docker container is the writable layer on top of a image.
Docker Compose
Docker Compose is a powerful tool for defining and managing multi-container Docker applicaitons. In practice, you can sepcify your applicaton’s services, networks, and volumes in a docker-compose.yml file, and then use a single command to start
them all.
1 | version: '3.9' |
Dockerfile
A Dockerfile is a script that contains a series of instructions to build a Docker image, inccluding the base image,
dependencies, configurations, and commands to run the application.
1 | # Use the official Node.js LTS image as the base image |
About CMD ["npm", "start"]
: Specifies the command to start the Node.js application. Make sure your package.json has a start script defined (e.g., “start”: “node index.js”).
Private Docker Registry
Normally, we push our Docker images to pricate docker registry rather than a public one. A commonly used private Docker registry is AWS ERC (Elastic Container Registry).
Docker Volumes
Docker Volumes is used to persist data in Docker and prevent data loss in stateful applications. They allow folders from the host’ physical file system (e.g. /home/mount/data) to be mounted into the virtual file system (e.g. /var/lib/mysql/data) of Docker.
There are three types of Docker volumes:
- Docker-managed volumes: Managed entirely by Docker and stored in its default location.
- Anonymous volumes: Automatically created without a specific name, typically for temporary use.
- Named volumes: Explicitly named and can be referenced by their names. Named volumes are the most common choice in production environments due to their reusability and ease of management.
Summary
The above covers the core concepts of Docker, providing a quick start for beginners. You can explore each part in greater details based on your interests.