Skip to main content

How to empty BuildKit's cache ?


This documentation is for an older version of Dagger, which is no longer actively maintained.

We encourage you to upgrade and refer to the documentation for the most current version.

If you cannot upgrade to the latest version, please contact us in the help forum on Discord. When contacting us, please let us know why you cannot move to the latest version. From there, our team will work with you on your use case.

There are two ways of emptying the BuildKit cache:

  • Run your action with the --no-cache option:
dagger do <your-action> --no-cache
  • Stop and remove the buildkitd container then remove its associated volume:
docker stop dagger-buildkitd ; docker rm dagger-buildkitd ; docker volume rm dagger-buildkitd

In 99.9% of the cases, the first solution is enough