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

Support HTTP when pushing with --insecure-registry #329

Closed kflansburg closed 1 year ago

kflansburg commented 3 years ago

This Closes #297 by cherry picking this commit from @aler9.

My test case was being able to push to a stock Docker registry container with no configurations set (and thus using HTTP).

I suspect that this may break the use case of pushing to an HTTPS endpoint whilst ignoring a custom CA using --insecure-registry. If that is a requirement then we may need to introduce an argument to specify protocol.