From 2b5ad68359524e83750bfc925f99d62256fdf4b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Sun, 13 Dec 2020 15:57:00 +0100 Subject: [PATCH] Add persistent storage for /var/lib/buildkit Mostly to not fill up the tmpfs (RAM), most of the contents are expendable (although the cache can of course be useful) --- deploy/iso/minikube-iso/package/automount/minikube-automount | 4 ++++ site/content/en/docs/handbook/persistent_volumes.md | 3 +++ 2 files changed, 7 insertions(+) diff --git a/deploy/iso/minikube-iso/package/automount/minikube-automount b/deploy/iso/minikube-iso/package/automount/minikube-automount index f1a8484bee54..478280ec15bd 100755 --- a/deploy/iso/minikube-iso/package/automount/minikube-automount +++ b/deploy/iso/minikube-iso/package/automount/minikube-automount @@ -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 diff --git a/site/content/en/docs/handbook/persistent_volumes.md b/site/content/en/docs/handbook/persistent_volumes.md index bb05a7944b1e..8f4966b5c77d 100644 --- a/site/content/en/docs/handbook/persistent_volumes.md +++ b/site/content/en/docs/handbook/persistent_volumes.md @@ -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`