centos 7 安装 docker-compose curl 设置代理

sudo curl -x “http://192.168.1.2:3128”

需要验证的代理
sudo curl -x “http://username:[email protected]:3128”

1.下载
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

2.添加执行权限
sudo chmod +x /usr/local/bin/docker-compose

3.确认是否安装成功
docker-compose --version

有这样的输出代表安装成功

Output
docker-compose version 1.23.2, build 1110ad01

参考
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-centos-7

你可能感兴趣的:(docker,笔记,Linux,centos,docker,linux)