Cleaning after muli stage build #20679
dominikjeske
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using multi stage build so when 'docker build' executes it creates 2+ images. Even when I remove my final image from build server (docker image rm) I have some leftovers. I don't want use 'docker prune' because it could affect other builds and also I don't want to delete some base images - I only want to remove intermediate images created during build. I found only one way - adding special labels and then delete images using those labels but maybe Podman has some build-in way to remove intermediate images after build? I also found that Docker desktop is now using new build type buildkit and then intermediate layers are created in other way but I'm not sure of this is supported in Podman?
My configuration: Podman 4.4.1, Linux Redhat 8
Beta Was this translation helpful? Give feedback.
All reactions