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.

If you notice errors always happen on the same volume, which you can see by checking the "spin up environment" step or "remote docker" please contact support 

Was this article helpful?
18 out of 42 found this helpful

Comments

0 comments

Article is closed for comments.