title: Mount local directory into pod in minikube
body: <p>I am running minikube v0.24.1. In this minikube, I will create a Pod for my nginx application. And also I want to pass data from my local directory.</p>
  
  <p>That means I want to mount my local <code>$HOME/go/src/github.com/nginx</code> into my Pod</p>
  
  <p>How can I do this?</p>
  
  <pre><code>apiVersion: v1
  kind: Pod
  metadata:
    name: nginx
  spec:
    containers:
    - image: nginx:0.1
      name: nginx
      volumeMounts:
      - mountPath: /data
        name: volume
    volumes:
    - name: volume
      hostPath:
        path: /data
  </code></pre>