1. 检查Docker Compose版本

运行以下命令查看版本:

docker-compose version

2. 升级Docker Compose版本

sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose version
如果觉得我的文章对你有用,请随意赞赏