You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docker fails to clean up images due to missed dependency when copy --from is embedded in a base image, buildkit does the same and fails to build due to race condition
Describe the results you received:
for each build docker seems to loose the link and ignores the clean up cmd, you end up with a bunch of images until your disk fills up
Describe the results you expected:
Intermediate images should be cleaned up
Additional information you deem important (e.g. issue happens only occasionally):
In the repo there is also scenario two which is the same issue. builkit builds the ast only within a context of a single dockerfile and doesnt seem to link dependencies across multiple FROM statements (see issue 2 in readme)
Output of docker version:
Docker version 19.03.13, build 4484c46d9d
The text was updated successfully, but these errors were encountered:
As to the untagged image; note that --force-rm is to remove the intermediate build containers used during build (when using the classic builder). For buildkit this is a "no-op", as it may not be using containers for various operations, and build containers used by buildkit won't show up in docker ps
I didnt realize there was an issue opened that long ago, yes its pretty much the same issue. It seems to me if an additional pass would be made to set up a dep then it could be fixed.
Docker fails to clean up images due to missed dependency when copy --from is embedded in a base image, buildkit does the same and fails to build due to race condition
Steps to reproduce the issue:
https://github.com/swisslala/docker-bug
Steps to reproduce issues are here
https://github.com/swisslala/docker-bug/blob/master/How-to-reproduce.md
Describe the results you received:
for each build docker seems to loose the link and ignores the clean up cmd, you end up with a bunch of images until your disk fills up
Describe the results you expected:
Intermediate images should be cleaned up
Additional information you deem important (e.g. issue happens only occasionally):
In the repo there is also scenario two which is the same issue. builkit builds the ast only within a context of a single dockerfile and doesnt seem to link dependencies across multiple FROM statements (see issue 2 in readme)
Output of
docker version
:The text was updated successfully, but these errors were encountered: