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
Cannot squash if no "real" layers #33823
Comments
The squash function is pretty generic and does not have any logic of the build. I think the builder would need to track if a squash is necessary in this case. |
I think this can be closed when we remove |
I opened a PR for documenting this limitation; docker/cli#639
I think we should enhance the |
(update: opened #35280 as a proposal to address the "squash" use case) |
I have the same issue when docker build with
|
Description
My first attempt to reproduce #33822 was with a
Dockerfile
which just contained a couple ofENV
statements. But thedocker build --squash
failed with:Steps to reproduce the issue:
Describe the results you received:
The above error message, which is a little cryptic, especially since
sha256:404361ced64e2...
isn't once of the hashes in the preceding output.Describe the results you expected:
Ideally a successful squash or at least a more informative message (e.g. "No layers to squash" if that is indeed the cause)
Additional information you deem important (e.g. issue happens only occasionally):
This was a dev tree at d311a3a, via
make shell
. I was running./bundles/latest/binary-daemon/dockerd --log-level=debug --experimental
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
/cc @tonistiigi
The text was updated successfully, but these errors were encountered: