Linux安装Docker

Ubuntu Docker 安装

# 下载并执行Docker官方安装脚本
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

# 启动Docker服务
sudo systemctl start docker
sudo systemctl enable docker

Debian Docker 安装

 # 官方安装脚本自动安装
 curl -fsSL https://get.docker.com -o get-docker.sh
 sudo sh get-docker.sh