系统版本:centos7
DaoCloud:
安装docker:
curl -sSL https://get.daocloud.io/docker | sh
安装docker-compose:
curl -L https://get.daocloud.io/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > ~/docker-compose
chmod +x ~/docker-compose
sudo mv ~/docker-compose /usr/local/bin/docker-compose
加速器:
curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://7e61f7f9.m.daocloud.io
参考:https://get.daocloud.io/#install-compose
阿里云:
安装或升级docker:
curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh -
加速器:
# 系统要求 CentOS 7 以上,Docker 1.9 以上。
sudo cp -n /lib/systemd/system/docker.service /etc/systemd/system/docker.servicesudo
sed -i "s|ExecStart=/usr/bin/docker daemon|ExecStart=/usr/bin/docker daemon --registry-mirror=https://967nyjud.mirror.aliyuncs.com|g" /etc/systemd/system/docker.servicesudo
systemctl daemon-reloadsudo service docker restart
参考:https://cr.console.aliyun.com/?spm=5176.100239.blogcont57268.20.ik4KA5#/accelerator
网友评论