How to remove dangling images after build a new one? #1368
Replies: 1 comment 1 reply
-
Thanks for the question @thiagoolsilva. This isn't something that Batect currently supports. Note that you'll only end up with an untagged image if the definition of the image changes (ie. when the Dockerfile or any files copied into the image change). Rebuilding the same image over and over again should not produce any new images and therefore should not create any garbage. Docker will also share identical image layers between images wherever possible, so the size reported by If you'd like an easy way to clean up untagged images, you can run |
Beta Was this translation helpful? Give feedback.
-
I've trying to use the feature named dockerfile to build a custom dockerfile image and after ran it I've notice that it creates a untagged images. So, is it possible to reuse the same docker image since any data was changed or delete the untaged image to avoid any trash on my host computer?
Beta Was this translation helpful? Give feedback.
All reactions