<p>I am trying to use <code>kubernetes</code> for local deployment using <code>minikube</code>, I want to mount a share a directory between host machine and pods. For this, I am trying to mount directory to <code>minikube</code>. But I already had minikube running on which few deployments were running. I deleted them. But every time I restart minikube with mount I get following error</p>
<pre><code>$ minikube start --mount-string=&quot;/var/log:/log&quot; --mount
* minikube v1.14.2 on Ubuntu 18.04
* Using the docker driver based on existing profile
* Starting control plane node minikube in cluster minikube
* Restarting existing docker container for &quot;minikube&quot; ...

X Exiting due to GUEST_MOUNT_CONFLICT: Sorry, docker does not allow mounts to be changed after container creation (previous mount: '', new mount: '/var/log:/log)'
</code></pre>
<p>Output for kubectl get all is</p>
<pre><code>kubectl get all
NAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
service/kubernetes   ClusterIP   10.96.0.1    &lt;none&gt;        443/TCP   2s
</code></pre>
<p>What am I doing wrong here. I need to mount <code>/var/log:/log</code> in my pods just like docker</p>

Pranjal Doshi
<p>You will have to delete the minikube container first using <code>minikube delete</code> , after that recreate the container with the new mount path <code>minikube start --mount-string=&quot;/var/log:/log&quot; --mount</code><br />
Check this Github <a href="https://github.com/kubernetes/minikube/issues/11084" rel="noreferrer">Issue</a> for more details</p>
