I run a docker build with command
sudo docker build -t catskills-xview2-0.0.0 .
I have previously built this tag. It has a lot of cached build steps, like this:
Step 15/20 : RUN pip3 install matplotlib tqdm libtiff scipy Pillow scikit-image opencv-python imgaug IPython geopandas keras imantics simplification scikit-learn chainer tensorboard tensorboardX
---> Using cache
---> 2af652c17995
Step 16/20 : RUN git clone https://github.com/xview2/xview2-baseline.git ~/code/xview-2
---> Using cache
---> 8ea290c99ee8
Most of the time I want the cache. If I've updated source for a particular cache item, I want to delete that item so it will fetch it from scratch. For example, cache item 8ea290c99ee8.
I know that I can completely rebuild with --no_cache. This is slow.
Question: How do I delete a single cache item using it's key, so that the rebuild will re-fetch on that step?