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
'podman build' cannot create images with empty Dockerfile #1993
Comments
@TomSweeneyRedHat Since we're calling straight into |
@mheon my guess is a new variant of Buildah, but there may be a wrapper issue. I'll grab this and will see. |
Probably need to fix, but I don't see where this is a real world issue. Unless you want to ship an totaly empty image, that would be very secure. :^) |
@rhatdan as I mentioned above the test case, https://github.com/containers/libpod/blob/master/test/test_podman_build.sh#L23 is failing on my system because of this issue. |
I tried to vendor in Buildah to fix this but still the same behavior. I also tried a one-line Dockerfile with Fedora instead of scratch and that worked fine too. This is beginning to feel like a Podman build wrapper error, but I can't imagine... Will dig more tomorrow. |
This works ok in Buildah? |
Perfectly fine in Buildah, that's the odd part. |
OK, I know what the difference is at least. By default Buildah sets the default value of the --layers parameter to false. Podman sets the same value to true. If you do
The image will build. Now I need to figure out why it's not building with layers set to true. |
This works now, thanks to @TomSweeneyRedHat 's great fixes. |
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
Description
So
buildah
can create an image from a Dockerfile that has onlyFROM scratch
. Now let's try withpodman build
First cleanup,
As you can see
podman build
didn't create any image, butbuildah bud
was able to. Now let's try this,So this time it worked if some content was added in Dockerfile apart from the first line.
This is issue is affecting the test case here, https://github.com/containers/libpod/blob/master/test/test_podman_build.sh#L23
Steps to reproduce the issue:
FROM scratch
.podman build
won't be able to create an image, whilebuildah bud
will be able to.Describe the results you received:
container image should have gotten created.
Describe the results you expected:
No container image got created.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: