1、报错信息
bash
"compose build requires buildx 0.17.0 or later"
2、解决方法
查看版本:
bash
docker buildx version
查看安装位置:
bash
find / -name docker-buildx
下载:
bash
下载页面:https://github.com/docker/buildx/releases
bash
# 方式1:
wget https://github.com/docker/buildx/releases/download/v0.32.1/buildx-v0.32.1.linux-amd64 -O docker-buildx
# 方式2:使用代理下载
# 详见:https://mp.weixin.qq.com/s/XTbT3wKp_W2fiK7pGpo7Qg
wget https://gh-proxy.com/https://github.com/docker/buildx/releases/download/v0.32.1/buildx-v0.32.1.linux-amd64 -O docker-buildx
替换旧版本:
bash
# 将下载的文件移动到 Docker CLI 插件目录
mv -f docker-buildx /usr/libexec/docker/cli-plugins/docker-buildx
# 添加权限
chmod +x /usr/libexec/docker/cli-plugins/docker-buildx
查看版本:
docker buildx version
3、其他
bash
"升级Docker Compose"
# 详见:
# https://docs.docker.com/compose/install/
# https://docs.docker.com/compose/install/standalone/
# 下载
# 下载页面:https://github.com/docker/compose/releases
curl -SL https://github.com/docker/compose/releases/download/v5.0.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
# 添加权限
chmod +x /usr/local/bin/docker-compose
# 查看版本
docker-compose -v
4、详见
bash
https://mp.weixin.qq.com/s/kCgeD7nVsBzT5aLs5MMKoQ
https://mp.weixin.qq.com/s/CrjQTLJM0YbJ9SC4GIfKsg