docker快速安装
[root@docker-server ~]# yum install wget.x86_64 -y
[root@docker-server ~]# rm -rf /etc/yum.repos.d/*
[root@docker-server ~]# wget -O /etc/yum.repos.d/Centos-7.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@docker-server ~]# wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo
[root@docker-server ~]# wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
[root@docker-server ~]# yum install docker-ce -y
[root@docker-server ~]# systemctl enable docker.service
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[root@docker-server ~]# systemctl start docker.service
[root@docker-server ~]# cat > /etc/docker/daemon.json <<EOF
{
"exec-opts": ["native.cgroupdriver=systemd"],
"registry-mirrors": ["https://1lboxiho.mirror.aliyuncs.com","https://dockerproxy.cn",
"https://dockerpull.com","https://docker.1panel.live","https://dockerproxy.cn"]
}
EOF
[root@docker-server ~]# systemctl daemon-reload
[root@docker-server ~]# systemctl restart docker.service
标签:安装,server,repo,etc,yum,root,docker,快速
From: https://www.cnblogs.com/guixiangyyds/p/18559342