安装
一键安装
curl -sSL https://get.daocloud.io/docker | sh
换源
# 换源
cat << EOF > /etc/docker/daemon.json
{
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn/","https://hub-mirror.c.163.com","https://registry.docker-cn.com"],
"insecure-registries": ["10.0.0.12:5000"]
}
EOF
重启
service docker restart