Concepts

Containers

Containers are lightweight, portable, and self-sufficient units that encapsulate an application and its dependencies, ensuring consistent operation across environments.

Docker Compose

Docker Compose is a tool for defining and running multi-container Docker applications. Using a docker-compose.yml file, you can define services, networks, and volumes for your application and manage them with a single command.

Images

Docker images are immutable templates used to create containers. They contain the application code, libraries, and dependencies required to run an application.

Dockerfile

A Dockerfile is a script containing instructions to build a Docker image. It defines the base image, application code, environment variables, and commands to run the application.

Network

Docker networking allows containers to communicate with each other and the external world. Networks can be created and managed to isolate services for better security and performance.

Volumes

Docker volumes provide persistent storage for data generated by and used by Docker containers. Volumes are stored outside the container’s lifecycle, ensuring data persists even when a container is stopped or removed.

Commands

Container Commands