Docker安装
配置yum源
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
dnf install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
安装
yum install docker-ce-*
# 或
dnf install docker-ce-*
开机自启
systemctl enable --now docker
配置不安全镜像仓库
mkdir /etc/docker
echo >> /etc/docker/daemon.json <<EOF
{
"insecure-registries": ["WAREHOUSE_ADDRESS"]
}