Introducing Docker
Docker is an open-source tool for containerizing applications with these main parts:
- Docker Images: They encapsulate an application and its dependencies, like the operating system and Python packages. Images act as blueprints for the containers.
- Docker Containers: They encapsulate and expose an application based on an image.
- Docker Engine: It runs the containers.
Images are software package blueprints encapsulating an application and dependencies like Python packages. They are built or composed through the Docker Desktop interface or the Docker Command Line Interface (Docker CLI) and based on specifications from a Dockerfile
or docker-compose.yaml
file. In the subsection, Containerizing microservices, we’ll look at the Dockerfile
, and in the subsection, Applying multi-container deployment with Docker Compose, we’ll explore the docker-compose.yaml
file.
Containers are software packages that contain all parts to run in any environment...