docker buildx create --use mybuilder => 名称解析暂时失败

docker buildx create --use mybuilder => 名称解析暂时失败

创建一个构建器

$ docker buildx create --use mybuilder
romantic_galileo

观察“名称解析暂时失败”错误:

$ docker buildx ls
NAME/NODE           DRIVER/ENDPOINT      STATUS PLATFORMS
romantic_galileo *  docker-container            
  romantic_galileo0 tcp://mybuilder:2375 error during connect: Get "http://mybuilder:2375/v1.24/info": dial tcp: lookup mybuilder: Temporary failure in name resolution
default             docker                       
  default           default              running linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6

无法构建:

$ docker buildx build -t “${DOCKER_USER}/buildx-test:latest” \
  --platform linux/amd64,linux/arm64,linux/ppc64le --push .
[+] Building 0.0s (0/0)                                                                                                                                   
error: no valid drivers found: error during connect: Get "http://mybuilder:2375/v1.24/info": dial tcp: lookup mybuilder: Temporary failure in name resolution

这似乎是某种内部网络错误,但我无法找到有关其原因的良好信息以提供解决方案。

Ubuntu 22.04 LTS Docker 20.10.17

使用他们的说明从他们的 repo 进行 Docker 的标准安装: https://docs.docker.com/engine/install/ubuntu/

按照说明设置系统: 使用 Buildx 构建多架构 Docker 镜像,作者:Artur Klauser,2020 年 1 月 18 日

相关内容