我想构建一个多体系结构映像并将其推送到我的私有注册表。但是,我遇到了错误
”无法解决:rpc错误:代码=未知desc =无法执行 要求:头 https://10.7.121.15/v2/daocloud/multiarch-example/blobs/sha256:4c1976b440416ed5a170b2faf49c05af8f298f7afb07ff1f775b7b1ee7574042: x509:无法验证10.7.121.15的证书,因为它没有 包含任何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协议推送图像?
答案 0 :(得分:1)
尝试通过http: true
传递config file。有关更多详细信息,请参见this comment。例如
[registry."10.7.121.15"]
http = true
insecure = true
答案 1 :(得分:1)
尝试创建这样的构建器:
docker buildx create --name ci-builder --driver-opt network=host --use --buildkitd-flags '--allow-insecure-entitlement security.insecure'