Persist /tmp/hostpath_pv
parent
565d95e31e
commit
e4d62f1028
|
@ -264,6 +264,7 @@ However, Minikube is configured to persist files stored under the following host
|
|||
* `/data`
|
||||
* `/var/lib/localkube`
|
||||
* `/var/lib/docker`
|
||||
* `/tmp/hostpath_pv`
|
||||
|
||||
Here is an example PersistentVolume config to persist data in the '/data' directory:
|
||||
|
||||
|
|
|
@ -127,6 +127,9 @@ if [ -n "$BOOT2DOCKER_DATA" ]; then
|
|||
mkdir -p /mnt/$PARTNAME/data
|
||||
ln -s /mnt/$PARTNAME/data /data
|
||||
|
||||
mkdir -p /mnt/$PARTNAME/hostpath_pv
|
||||
ln -s /mnt/$PARTNAME/hostpath_pv /tmp/hostpath_pv
|
||||
|
||||
rm -rf /var/lib/rkt
|
||||
if [ ! -d /mnt/$PARTNAME/var/lib/rkt ]; then
|
||||
mkdir -p /mnt/$PARTNAME/var/lib/rkt
|
||||
|
|
Loading…
Reference in New Issue