2

我想构建一个多架构映像并将其推送到我的私有注册表。但是,我得到了一个错误

“未能解决:rpc 错误:代码 = 未知 desc = 请求失败:Head https://10.7.121.15/v2/daocloud/multiarch-example/blobs/sha256:4c1976b440416ed5a170b2faf49c05af8f298f7afb07ff1f775b7b1ee7574042 : x509:cannot validate.validate.因为它不包含任何 IP SAN”

当我运行命令时

"docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag 10.7.121.15/daocloud/multiarch-example:latest -f multi-arch.dockerfile . --push"

那么如何解决它或如何使用http协议推送图像?

4

2 回答 2

1

尝试使用. _ http: true有关更多详细信息,请参阅此评论。例如

[registry."10.7.121.15"]
  http = true
  insecure = true
于 2020-08-14T10:48:28.050 回答
1

尝试创建这样的构建器:

docker buildx create --name ci-builder --driver-opt network=host --use --buildkitd-flags '--allow-insecure-entitlement security.insecure'
于 2021-04-22T21:45:21.677 回答