How to delete cached/intermediate docker images after the cache gets invalidated
问题 I have a CI-pipeline that builds a docker image for my app for every run of the pipeline (and the pipeline is triggered by a code-push to the git repository.) The docker image consists of several intermediate layers which progressively become very large in size. Most of the intermediate images are identical for each run, hence the caching mechanism of docker is significantly utilized. However, the problem is that the final couple layers are different for each run, as they result from a COPY