Retention/Cleanup of intermediate layers

The command docker builder prune is ment to be used to cleanup the build cache.

I run the the command with and without -a to illustrate the difference:

me@node:~$ sudo docker builder prune
WARNING! This will remove all dangling build cache. Are you sure you want to continue? [y/N] y
Total reclaimed space: xyzB

me@node:~$ sudo docker builder prune -a
WARNING! This will remove all build cache. Are you sure you want to continue? [y/N] y
Total reclaimed space: xyzB
1 Like