-
Notifications
You must be signed in to change notification settings - Fork 294
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
Delegate checking of remote image existence to the daemon #1145
Delegate checking of remote image existence to the daemon #1145
Conversation
f7628bf
to
0c911b7
Compare
@aemengo this looks like a great fix. Any progress on getting the tests to pass? |
f62f64e
to
6313d36
Compare
When Docker Daemon is available, defer to Docker Daemon when pulling remote images. The motivation is that the Docker Daemon already handles more edge cases that we do. Signed-off-by: Anthony Emengo <aemengo@vmware.com>
6313d36
to
cf1156c
Compare
Codecov Report
@@ Coverage Diff @@
## main #1145 +/- ##
==========================================
+ Coverage 79.74% 80.86% +1.13%
==========================================
Files 136 136
Lines 8294 8296 +2
==========================================
+ Hits 6613 6708 +95
+ Misses 1254 1160 -94
- Partials 427 428 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
cf1156c
to
0423545
Compare
@jromero @natalieparellano I'm really sorry for the delay on this. The PR should now be ready to look at. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks awesome 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"github.com/buildpacks/imgutil/remote" | ||
|
||
"github.com/buildpacks/imgutil" | ||
"github.com/buildpacks/imgutil/local" | ||
"github.com/buildpacks/imgutil/remote" | ||
"github.com/buildpacks/lifecycle/auth" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As Javier mentioned #1187 (comment), there should be 3 import groups, I think.
img, err := f.fetchDaemonImage(name) | ||
return img, err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
img, err := f.fetchDaemonImage(name) | |
return img, err | |
return f.fetchDaemonImage(name) |
Summary
When Docker Daemon is available, defer to Docker Daemon when pulling remote images.
The motivation is that the Docker Daemon already handles more edge cases that we do.
The biggest difference to the end user is the error message bubbled from the Daemon, in the case of
config.PullPolicy == Always
Output
Before
After
Documentation
Related
Resolves #771