Install Docker
The recommended way to install Docker on Linux is using the official convenience script:
if ! command -v docker &>/dev/null; then echo "Installing Docker..." curl -fsSL https://get.docker.com | sh systemctl enable --now docker.servicefiThis script automatically detects your Linux distribution and installs Docker Engine with all required dependencies.