Skip to content

Commit

Permalink
docs: add faq tips for buildkit cache folder
Browse files Browse the repository at this point in the history
Help users to find a nerdctl command when they find a dangling cache in
buildkit cache folder, as a SEO.

Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr committed Dec 11, 2024
1 parent f3191c4 commit 1185e8e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
- [Containers do not automatically start after rebooting the host](#containers-do-not-automatically-start-after-rebooting-the-host)
- [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)
- [How to uninstall ? / Can't remove `~/.local/share/containerd`](#how-to-uninstall---cant-remove-localsharecontainerd)
- [How to clean a dangling cache of buildkit?](#how-to-clean-a-dangling-cache-of-buildkit)

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

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

0 comments on commit 1185e8e

Please sign in to comment.