Skip to content

Install Docker

The recommended way to install Docker on Linux is using the official convenience script:

Terminal window
if ! command -v docker &>/dev/null; then
echo "Installing Docker..."
curl -fsSL https://get.docker.com | sh
systemctl enable --now docker.service
fi

This script automatically detects your Linux distribution and installs Docker Engine with all required dependencies.