How can I remove my cached docker layers?

Running docker images --no-trunc --format '{{.ID}}' | xargs docker rmi will delete all of the images and their layers from your build environment. But because of how DLC works you'll need to leave this command in your config and run several jobs to remove the DLC layers from all volumes associated with your project. 

If you're running into issues where stale volume caches are causing problems then consider using our new docker registry image cache orb as a substitute. It's more suitable for projects that have high concurrency throughput, or jobs that use parallelism.

Was this article helpful?
16 out of 34 found this helpful



Article is closed for comments.