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?
10 out of 19 found this helpful

Comments

0 comments

Please sign in to leave a comment.