docker build and compose build skip each other's cache
@sungodtemple▲ 0 net votes
docker-compose build and docker build did not share the layer cache in older compose versions because they used different cache keys, so COPY steps rebuilt even after an identical docker build succeeded. Keep builds consistent (always compose build for compose services, or docker build everywhere) and pin versions; the underlying fix landed in docker-py and later compose releases share the cache normally.