-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
--rm=false does not keep intermediate containers as expected #1470
Comments
This issue should not be closed in favor of #1472 as #1472 only addresses one use-case. Let me give a different use-case which belongs to this ticket: pushing intermediate images using labels. See old thread in the docker forum here, SO question here etc. Running docker multiple times is typically not a solution as this can be inside a complex CI/CD pipeline where a gazillion parameters are given to docker. The previous recommended approach was using the |
Intermediate images are quite different from intermediate containers. This ticket was asking about the latter, and was closed because (I assume) #1472 contains the discussion about why BuildKit doesn't have the sort of intermediate containers that The use-case of pushing multiple targets from a build as individual images is interesting, but that seems like an unrelated feature request for this ticket. (Also only tangentially related to #1472: whatever debugging approach is implemented, and generating multiple images in a single build, might have some implementation details in common, but those aspects already exist in BuildKit, so the remaining effort would be minimally-shared.) |
Issue description
DOCKER_BUILDKIT=1 docker build --rm=false .
does not keep intermediate containers asdocker build --rm=false .
keepsSteps to reproduce the issue
What's the expected result?
What's the actual result?
The text was updated successfully, but these errors were encountered: