Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

kflansburg
Copy link

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.

@kflansburg kflansburg changed the title Support HTTP when pusing with --insecure-registry Support HTTP when pushing with --insecure-registry Jan 30, 2021
Copy link
Collaborator

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--insecure-registry should try HTTPS first and then fall back to plain HTTP.

Like this: https://github.com/AkihiroSuda/nerdctl/blob/24f96c2ff0e061f935b8f2ed3e028b97610da7b3/push.go#L89-L106

SebastiaanPasterkamp added a commit to SebastiaanPasterkamp/drone-genuinetools-img that referenced this pull request Jun 11, 2021
Manually apply a (modified) genuinetools/img#329
Add change to Dockerfile to turn image into drone plugin
SebastiaanPasterkamp added a commit to SebastiaanPasterkamp/drone-genuinetools-img that referenced this pull request Jun 11, 2021
* Manually apply a (modified) genuinetools/img#329
* Add change to Dockerfile to turn image into drone plugin
SebastiaanPasterkamp added a commit to SebastiaanPasterkamp/drone-genuinetools-img that referenced this pull request Jun 11, 2021
* Manually apply a (modified) genuinetools/img#329
* Add change to Dockerfile to turn image into drone plugin
SebastiaanPasterkamp added a commit to SebastiaanPasterkamp/drone-genuinetools-img that referenced this pull request Jun 11, 2021
* Manually apply a (modified) genuinetools/img#329
* Add change to Dockerfile to turn image into drone plugin
@kflansburg kflansburg closed this Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

img push --insecure-registry does not seem to work
3 participants