Persist /tmp/hostpath_pv

pull/1125/head
Tom von Schwerdtner 2017-02-13 12:32:46 -05:00
parent 565d95e31e
commit e4d62f1028
2 changed files with 4 additions and 0 deletions

View File

@ -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:

View File

@ -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