Docker

Docker is an open platform for developing, shipping, and running applications. Docker allows you to separate your applications from your infrastructure so you can deliver software quickly.

Overview

Docker is an open-source containerization platform that helps developers package applications and their dependencies into lightweight, portable containers. Containers can run in any environment that supports Docker, ensuring "build once, run anywhere."

Core Concepts

  • Container: Lightweight, executable software package
  • Image: Read-only container template
  • Dockerfile: Configuration file for building images
  • Docker Hub: Official image repository

Features

  • Application Containerization: Ensure environment consistency
  • Microservices Architecture: Independent deployable units
  • CI/CD Integration: Automated builds and deployments
  • Development Environment Standardization: More efficient team collaboration

Quick Start

Installation

macOS:

brew install --cask docker

Linux (Ubuntu):

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

Windows: Download Docker Desktop installer and run.

First Container

docker run hello-world

Run Nginx

docker run -d -p 8080:80 nginx

Visit http://localhost:8080 to view.

Documentation

Docker Desktop

Docker Desktop is a one-click-install application for Mac, Windows, and Linux that includes a complete Docker development environment.

System Requirements

  • macOS: 10.15+
  • Windows: 10 Pro/Enterprise/Education
  • Linux: Ubuntu 22.04+ / Debian 11+ / Fedora 39+

Licensing

Commercial use of Docker Desktop requires a paid subscription (more than 250 employees OR more than $10 million USD annual revenue).

Docker Engine uses Apache License 2.0 (open source).