-
Notifications
You must be signed in to change notification settings - Fork 298
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
Cannot pull from an insecure registry when referred to by hostname #771
Comments
Interesting. I tried verifying it, but I get another error:
|
@dfreilich I believe your particular issue is due to it running on a MacOS which uses a VM that has different networking properties. It looks like the OP is using Linux. |
@mwcd I'm interested in this issue. I'm taking a look if you don't mind 👍🏾 I'm definitely curious though, what's the doing the resolution of Thanks for such a detailed write-up. EDIT: I was able to reproduce. I performed the steps with:
In both cases, the error following message showed up, even though DNS resolution succeeded inside a build container in case 2:
EDIT: My thoughts are that this issue should be closed. I was able to reproduce without using I tested and reproduced on 2 Linux Machines:
Output:
Looks like a related issue: buildpacks/lifecycle#524 |
The issue buildpacks/lifecycle#524 is regarding the non-daemon case (aka @aemengo, in your reproduction it looks like you are using the |
I synced up with @jromero out-of-band for this. Looks like the problem ultimately is that we're not passing I created #1145 to get around this issue. Again, many thanks from bringing it up! 👍🏾 |
Summary
pack create-builder
andpack build
fail with similar messages if the builder references images within an insecure registry referred to by hostname:Reproduction
Steps
insecure-registries
listCurrent behavior
Expected behavior
I expected the builder to be created successfully, as happens when I refer to my registry by IP rather than by hostname
Environment
pack info
docker info
The text was updated successfully, but these errors were encountered: