{
"registry-mirrors": [
"https://mirror.ccs.tencentyun.com"
]
}
$ systemctl daemon-reload
$ service docker restart
$ docker info
查看是否有如下信息
Registry Mirrors:
https://mirror.ccs.tencentyun.com/
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
要安装其他版本的 Compose,请替换 1.24.1。
将可执行权限应用于二进制文件:
$ sudo chmod +x /usr/local/bin/docker-compose
测试是否安装成功:
$ docker-compose --version
cker-compose version 1.24.1, build 4667896b