Navigation Menu

Skip to content

Commit

Permalink
Add persistent storage for /var/lib/buildkit
Browse files Browse the repository at this point in the history
Mostly to not fill up the tmpfs (RAM), most of the contents
are expendable (although the cache can of course be useful)
  • Loading branch information
afbjorklund committed Dec 13, 2020
1 parent d25e249 commit 2b5ad68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy/iso/minikube-iso/package/automount/minikube-automount
Expand Up @@ -105,6 +105,10 @@ if [ -n "$BOOT2DOCKER_DATA" ]; then
mkdir -p /var/lib/containerd
mount --bind /mnt/$PARTNAME/var/lib/containerd /var/lib/containerd

mkdir -p /mnt/$PARTNAME/var/lib/buildkit
mkdir -p /var/lib/buildkit
mount --bind /mnt/$PARTNAME/var/lib/buildkit /var/lib/buildkit

mkdir -p /mnt/$PARTNAME/var/lib/containers
mkdir -p /var/lib/containers
mount --bind /mnt/$PARTNAME/var/lib/containers /var/lib/containers
Expand Down
3 changes: 3 additions & 0 deletions site/content/en/docs/handbook/persistent_volumes.md
Expand Up @@ -18,6 +18,9 @@ minikube is configured to persist files stored under the following directories,
* `/data`
* `/var/lib/minikube`
* `/var/lib/docker`
* `/var/lib/containerd`
* `/var/lib/buildkit`
* `/var/lib/containers`
* `/tmp/hostpath_pv`
* `/tmp/hostpath-provisioner`

Expand Down

0 comments on commit 2b5ad68

Please sign in to comment.