docker compose 報錯 [1458] Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin/docker-compose.pkghtml
按照官方的 curl 安裝方法安裝以後,查看版本報錯git
curl 安裝方法:github
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
docker-compose --version
報錯:網絡
Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin/docker-compose.pkg
查找緣由發現多是因爲網絡緣由下載的不完整?curl
換一種下載方式url
wget https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m) -O /usr/local/bin/docker-compose