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. This can be temporarily added as a run step to your config.yml to remove existing images and layers. After running this you can remove it from the config to build fresh images.


You can also start a job with SSH to login and run the command manually from the command line.

Was this article helpful?
11 out of 23 found this helpful



Article is closed for comments.