docker compose升级

docker-compose --version
whereis docker-compose
cp /usr/bin/docker-compose /usr/bin/docker-compose_old

升级 docker-compose

VERSION=$(curl https://api.github.com/repos/docker/compose/releases/latest | jq .name -r)

sudo curl -L "https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose


sudo chmod +x /usr/local/bin/docker-compose

Last updated