dockerfile镜像私有仓库需要https登录验证改成http
ERROR: failed to do request: Head "https://192.168.16.185:8088/v2/jenkins/python_common_api/manifests/base": http: server gave HTTP response to HTTPS client
Dockerfile:1 -------------------- 1 | >>> FROM 192.168.16.185:8088/jenkins/python_common_api:base 2 | ENV LC_ALL="C.UTF-8" 3 | ENV TZ="Asia/Shanghai"
mkdir /etc/buildkit/
vim /etc/buildkit/buildkitd.toml
[registry."harbor.cncf.net"]
http = true
insecure = true
systemctl daemon-reload
systemctl restar buildkitd
mkdir -p /etc/nerdctl
vim /etc/nerdctl/nerdctl.toml
namespace = "k8s.io"
debug = false
debug_full = false
insecure_registry = true