docker-compose 下载安装失败
docker compose 报错 [1458] Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin/docker-compose.pkg
按照官方的 curl 安装方法安装之后,查看版本报错
curl 安装方法:
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
运行
docker-compose --version
报错:
Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin/docker-compose.pkg
查找原因发现可能是由于网络原因下载的不完整?
换一种下载方式
wget https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m) -O /usr/local/bin/docker-compose