-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
--output type=docker,tar=true
and tar=false
create different files
#5559
Comments
There's some context for this behavior in #1949 (comment). I think what you're seeing is expected, but will let @tonistiigi confirm. |
I looked at that comment (and issue), but I'm not sure how that's applicable here. That issue is about the |
|
Sure, I get that. But why is it only added when |
Because |
We might just make |
I assume you mean Well, if you want to disallow this, it's certainly your prerogative. But let me just explain my use case here. I wanted to build an image and simultaneously load it to Docker and save it to the filesystem as an unpacked OCI image, to be used as a build context for another build. My first attempt didn't work because of #5556. So I figured I would try to save the image in the Docker format instead (which I assume would also work as a build context), and then tar it up manually and pipe it to |
Yes, sorry.
#5556 looks like a bug if it works correctly with one output but not with both together. |
Take this Dockerfile:
FROM scratch
Build it in two ways:
Examine the results:
The
tar=true
output has themanifest.json
file, while thetar=false
output has theingest
directory. From the description of the option I would expect both outputs to be the same (except for one of them being an archive, of course).Version information:
The text was updated successfully, but these errors were encountered: