注意:本镜像只提供Debian/Ubuntu/Fedora/CentOS/RHEL的docker软件包,非dockerhub
sudo apt-get remove docker docker-engine docker.io
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://mirrors.shuosc.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://mirrors.shuosc.cn/docker-ce/linux/ubuntu \
$(lsb_release -cs) \
stable"
echo "deb [arch=armhf] https://mirrors.shuosc.cn/docker-ce/linux/debian \
$(lsb_release -cs) stable" | \
sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get install docker-ce
sudo yum remove docker docker-common docker-selinux docker-engine
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.shuosc.cn/docker-ce/linux/centos/docker-ce.repo
sudo sed -i 's+download.docker.com+mirrors.shuosc.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo
wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.shuosc.cn/docker-ce/linux/fedora/docker-ce.repo
sudo sed -i 's+download.docker.com+mirrors.shuosc.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo
sudo yum makecache fast
sudo yum install docker-ce