<p>I am currently trying to use the "--overrides" option in k8s to mount a local directory that a docker container can access and then run a command against that container utilizing that directory.</p>

<pre><code>kubectl run -i --tty cic-v1 --image=image1 --restart=Never --overrides={"spec":{"volumeMounts":[{"name":"input","mountPath":"/usr/src/data/input"},{"name":"output","mountPath":"/usr/src/data/output"}],"volumes":[{"name":"input","hostPath":{"path":"/input/"}},{"name":"output","hostPath":{"path":"/output/"}}]}}
</code></pre>

<p>Ideally this is done inline without the use of a .yaml file. All attempts result in...
error: Invalid JSON Patch
...and I am having difficulty debugging this. Has anyone accomplished anything similar?</p>

<p>Answer found here.</p>

<p><a href="https://stackoverflow.com/a/37621761/6309">https://stackoverflow.com/a/37621761/6309</a></p>

<p>I was incorrectly specifying the 'overrides' option in k8s.</p>
