-
Notifications
You must be signed in to change notification settings - Fork 18.9k
c8d/builder-next: Skip unpacking when push=true #51494
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
Conversation
The image exporter wrapper was unconditionally setting `unpack=true` for all build exports when no explicit unpack option was provided. This caused unnecessary unpacking overhead when images were only being pushed to a registry and not intended for local execution. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
a8d52fe to
28c7364
Compare
thaJeztah
left a comment
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.
SGTM
@cpuguy83 @tonistiigi PTAL
|
I feel like not unpacking is going to surprising. |
|
I don't think we should change the If this is desirable we could consider |
This is already exposed - with #51493 you can set It might be a bit surprising that the first image use will take a bit longer.. but for build that pushes immediately, I think it would be fairly safe to assume that the main use-case is not running the image locally.
Doing this on buildx side seems good to me too. Opened: docker/buildx#3519 |
|
Closing in favor of docker/buildx#3519 |
docker build --pushalways unpacks into moby snapshotter #51442c8d/builder-next: Skip unpacking when push=true
The image exporter wrapper was unconditionally setting
unpack=trueforall build exports when no explicit unpack option was provided. This
caused unnecessary unpacking overhead when images were only being pushed
to a registry and not intended for local execution.