-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
disabling of layers in builds (squash) is not respected #8643
Comments
Does this work properly with buildah bud? |
I don't know about I noticed that |
--layers=true is just a speed enhancement for building. It means that podman build will look to see if previous builds had successfully built this layer, so it will not be necessary to build it a gain. --squash says to remove all layers down to the base layer. |
@rhatdan , In the past I've been building with Now the two options are also incompatible to be applied to the same build. Which makes some sense according to your explanations. And what I understand from your explanation is that In man page I see
In case we do NOT squash (and we can't specify
I hope I managed to explain where the confusion comes from. Let me try to summarize the points:
|
Ok What I see is Causes layers to not be used. If I add I see layers being used. |
Currently the --layers flag set by the user is ignored, and only the BUILDAH_LAYERS environment variable being set is observed. Fixes: containers#8643 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Trying to build image without layers still creates an image with layers.
Steps to reproduce the issue:
BUILDAH_LAYERS=false podman build ... --layers=false .
podman inspect 7efe57c60a46309fb7de852
Describe the results you received:
btw caching is interrupted by the
ADD
command. I assume this is expected.Then
podman inspect
shows underHistory
a number of non-empty layers.Describe the results you expected:
I expect layers are not used and image contain only one non-empty layer on top of base image.
Additional information you deem important (e.g. issue happens only occasionally):
This has worked properly in the past. if I'm not mistaken with podman-2:2.0.3-1.fc32.x86_64
With podman-2:2.1.1-7.fc32.x86_64 and 2.2 same issue.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Fedora 32 virtual machine on a Fedora host.
The text was updated successfully, but these errors were encountered: