ERROR: failed to solve: 192.168.253.123:5000/backend-base:1.0.0: failed to resolve source metadata for 192.168.253.123:5000/backend-base:1.0.0: failed to do request: Head "https://192.168.253.123:5000/v2/backend-base/manifests/1.0.0": http: server gave HTTP response to HTTPS client
原因分析:
- 它默认去网址https请求元数据,但是自己搭建的仓库没提供https的服务;
解决方法:
1、创建buildkitd.toml文件
修改为自己docker私有库的地址例如:192.168.253.123:5000
[registry."a.b.c:5000"]
mirrors = ["a.b.c:5000"]
http = true
insecure = true
2、创建builder示例过程中加入config参数
docker buildx create --name muti-buildx --driver docker-container --use --config buildkitd.toml
参考:
5万+

被折叠的 条评论
为什么被折叠?



