Is it possible to remove a file completely from an intermediate Docker layer?
E.g. I have:
Layer A: with BigFile
L Layer B: remove BigFile
L Layer C: builds on B
As files are still present in containers, even though BigFile
isn't accessible, it is present in C
. And therefore adds to the overall image size.
What I'd like though is to remove BigFile
completely from C
.
What's the solution? Is it just to remove it from Layer A
in the first place?