2019-05-22 23:20:03 +00:00
|
|
|
# minikube: Syncing files into the VM
|
|
|
|
|
|
|
|
## Syncing files during start up
|
|
|
|
|
|
|
|
As soon as a VM is created, minikube will populate the root filesystem with any files stored in $MINIKUBE_HOME (~/.minikube/files).
|
|
|
|
|
2019-05-22 23:21:32 +00:00
|
|
|
For example, running the following commands will result in `/etc/OMG` being added with the contents of `hello` into the minikube VM:
|
|
|
|
|
2019-06-22 17:04:43 +00:00
|
|
|
```shell
|
2019-05-22 23:20:03 +00:00
|
|
|
mkdir -p ~/.minikube/files/etc
|
2019-05-22 23:21:32 +00:00
|
|
|
echo hello > ~/.minikube/files/etc/OMG
|
2019-05-22 23:20:03 +00:00
|
|
|
minikube start
|
|
|
|
```
|
|
|
|
|
|
|
|
This method of file synchronization can be useful for adding configuration files for apiserver, or adding HTTPS certificates.
|