Skip to content

Commit 444c172

Browse files
authored
Merge pull request #3741 from miurahr/topic/miurahr/docs/nerdctl-builder-prune-target-folder
docs: add faq tips for buildkit cache folder clean-ups
2 parents 580d47c + 1185e8e commit 444c172

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/faq.md

+13
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
- [Containers do not automatically start after rebooting the host](#containers-do-not-automatically-start-after-rebooting-the-host)
3333
- [Error `failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: unable to start unit ... {Name:Slice Value:"user.slice"} {Name:Delegate Value:true} ... Permission denied: unknown`](#error-failed-to-create-shim-task-oci-runtime-create-failed-runc-create-failed-unable-to-start-container-process-unable-to-apply-cgroup-configuration-unable-to-start-unit--nameslice-valueuserslice-namedelegate-valuetrue--permission-denied-unknown)
3434
- [How to uninstall ? / Can't remove `~/.local/share/containerd`](#how-to-uninstall---cant-remove-localsharecontainerd)
35+
- [How to clean a dangling cache of buildkit?](#how-to-clean-a-dangling-cache-of-buildkit)
3536

3637
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
3738

@@ -355,3 +356,15 @@ Run the following commands:
355356
containerd-rootless-setuptool.sh uninstall
356357
rootlesskit rm -rf ~/.local/share/containerd ~/.local/share/nerdctl ~/.config/containerd
357358
```
359+
360+
### How to clean a dangling cache of buildkit?
361+
362+
`buildkit` cache directory is located at `$HOME/.local/share/buildkit/`
363+
in rootless mode, which has same folder structure `/var/lib/buildkit/` in
364+
root mode.
365+
366+
You can clear the cache objects by running the following command:
367+
```
368+
nerdctl builder prune
369+
```
370+
The command produce a progress message of id and size of removed objects.

0 commit comments

Comments
 (0)