CentOS 安装 docker
centOS 安装docker
1. 安装curl
apt -y update
apt -y install curl
2.运行一键安装脚本
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
3. 启用docker并设置开机自启
systemctl start docker
systemctl status docker
systemctl enable docker