安装 Docker:
$ curl -sSL https://get.daocloud.io/docker | sh
卸载:
$ sudo yum remove docker docker-common container-selinux docker-selinux docker-engine
安装 Docker Compose:
$ curl -L https://get.daocloud.io/docker/compose/releases/download/1.19.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
$ chmod +x /usr/local/bin/docker-compose
配置 Docker 加速器
$ curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://9c167da9.m.daocloud.io
该脚本可以将 --registry-mirror 加入到你的 Docker 配置文件 /etc/docker/daemon.json 中。