Docker

Ibrahim S - Nov 29 '23 - - Dev Community

๐Ÿ›ณ What is docker?

Docker is a containerization platform from Docker, Inc that enables the development, deployment, and running of applications in isolated containers. Containers encapsulate an application and its dependencies, ensuring consistency across different environments.

๐Ÿ“š Key Concepts:

๐ŸŒŸ Containers:

  • Lightweight, standalone, and executable packages.
  • Include the application code, runtime, libraries, and system tools.
  • Run consistently on any environment with Docker installed.

๐ŸŒŸ Images:

  • Template for creating containers.
  • Snapshot of a filesystem with application code and dependencies.
  • Stored in a registry (like Docker Hub) and can be shared.

๐ŸŒŸ Dockerfile:

  • Script containing instructions to build a Docker image.
  • Specifies the base image, application code, dependencies, and configurations.

๐ŸŒŸ Registry:

  • Repository for Docker images.
  • Docker Hub is a public registry; private registries are also available.

๐ŸŒŸ Container Orchestration:

  • Docker Compose: Defines multi-container applications and manages their lifecycle.
  • Kubernetes: Orchestrates and automates the deployment, scaling, and management of containers.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .