-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
DOCKER_BUILDKIT=1 docker build --squash
should not squash the base image
#38903
Comments
I changed this to "bug", as this is a breaking change for people that switch from the legacy builder |
/cc @tonistiigi |
Hi, is there any update regarding this issue? or any plan when to fix in 18.09? |
No update but PR is always welcome |
Appreciate if anyone can take a look at #39187 and give comments |
Hi: sorry to intrude, I can't find where else to ask about this. I'm a Docker user but not a contributor. I've just discovered that Ramping up now on BuildKit, I'm concerned to see that this behavior (which I like) is treated as a bug. I take the point very well, that switching to But also: for my use case, I prefer the behavior which produces only a single layer. Is there any chance that support for the new behavior could be preserved, probably via a different flag? I'm aware of Thanks - and again sorry if this is the wrong forum for this discussion. |
Another related problem trying to solve the need to keep the squashing up to the FROM layer: I'm currently using buildkit to build the image, and then still relying on legacy builder to squash it To reproduce, just do echo | DOCKER_BUILDKIT=1 docker build -t a -<<EOF
FROM busybox
RUN touch foo
RUN touch foo2
RUN touch foo3
EOF
echo "FROM a"| DOCKER_BUILDKIT="" docker build --squash -t b - I tried with to build an image with
The same is working with current |
Description
Steps to reproduce the issue:
DOCKER_BUILDKIT=1 docker build --iidfile /tmp/iid --squash . && docker save $(cat /tmp/iid) | tar t | grep layer.tar | wc -l
Describe the results you received:
1
Describe the results you expected:
2
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: