参考:https://github.com/docker/buildx/issues/163
https://github.com/thegeeklab/drone-docker-buildx/issues/153
https://github.com/moby/buildkit/blob/master/docs/buildkitd.toml.md
准备用 buildx 构建多平台镜像,基于Dockerfile
from 私服中的 jdk
在 执行以下命令时,报 http: server gave HTTP response to HTTPS client
docker buildx build --platform=linux/arm,linux/arm64,linux/amd64 -t "192.168.31.111:5000/test:1.0.0" --push .
解决办法:
1. 进入 buildx 容器
2. 编辑 buildkitd.toml
vi /etc/buildkit/buildkitd.toml
在
前面加上 私服地址、http = true、insecure = true
[registry."192.168.31.111:5000"] mirrors = ["192.168.31.111:5000"] http = true insecure = true
解决灵感来自于:https://github.com/thegeeklab/drone-docker-buildx/issues/153
标签:github,http,buildx,server,https,HTTP,docker,true From: https://www.cnblogs.com/wtx106/p/17561237.html