From 700bd2f2aa59a67b8eba9bc093f28ddc8b5678de Mon Sep 17 00:00:00 2001 From: guillaume Date: Tue, 12 Apr 2022 18:38:22 +0200 Subject: [PATCH] docs: guide - empty buildkit cache doc Signed-off-by: guillaume --- docs/guides/1227-empty-buildkit-cache.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/guides/1227-empty-buildkit-cache.md diff --git a/docs/guides/1227-empty-buildkit-cache.md b/docs/guides/1227-empty-buildkit-cache.md new file mode 100644 index 00000000..88e34946 --- /dev/null +++ b/docs/guides/1227-empty-buildkit-cache.md @@ -0,0 +1,22 @@ +--- +slug: /1227/empty-buildkit-cache +displayed_sidebar: europa +--- + +# How to empty BuildKit's cache ? + +There are two ways of emptying the BuildKit cache: + +- Run your action with the `--no-cache` option: + +```console +dagger do --no-cache +``` + +- Stop and remove the buildkitd container and remove its associated volume: + +```console +docker stop dagger-buildkitd ; docker rm dagger-buildkitd ; docker volume rm dagger-buildkitd +``` + +In 99.9% of the cases, the first solution is enough