Installing Docker
macOS
Download Docker Desktop from docker.com or use Homebrew:
bash
1brew install --cask dockerLinux (Ubuntu/Debian)
bash
1# Update packages
2sudo apt update
3
4# Install prerequisites
5sudo apt install apt-transport-https ca-certificates curl software-properties-common
6
7# Add Docker's GPG key
8curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
9
10# Add repository
11echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
12
13# Install Docker
14sudo apt update
15sudo apt install docker-ce docker-ce-cli containerd.io
16
17# Add user to docker group
18sudo usermod -aG docker $USERWindows
Download Docker Desktop from docker.com. Requires WSL2.
Verify Installation
bash
1docker --version
2# Docker version 24.0.0, build ...
3
4docker run hello-worldDocker Desktop Features
- GUI for managing containers
- Kubernetes integration
- Resource management
- Extensions marketplace
