genuinetools / img

Standalone, daemon-less, unprivileged Dockerfile and OCI compatible container image builder.
https://blog.jessfraz.com/post/building-container-images-securely-on-kubernetes/
MIT License
3.88k stars 229 forks source link

Allow plain HTTP for insecure-registry option #358

Open zemanlx opened 1 year ago

zemanlx commented 1 year ago

Fixes #85, #126 and #274.

Supersedes #329 and fulfils @AkihiroSuda requirement from https://github.com/genuinetools/img/pull/329#pullrequestreview-606338010 :crossed_fingers:

If --insecure-registry is passed, then we first try to do HTTPS request and if a response is HTTP then we try to push via HTTP.