title: How can I add an extra bind-mount to this configuration?
body: <p>There are two ways of passing arguments, I chose this one:</p>
  <p><code>sudo docker run -d  -e url=http://example.com --name myBlog -p 3001:2368 -v &quot;$(pwd)/content&quot;:/var/lib/ghost/content ghost:latest</code></p>
  <p>How can I add an extra command line so it also adds a bind-mount to:</p>
  <p><code>$(pwd)/testFolder/config.production.json</code> the file on the volume would be here: <code>:/var/lib/ghost/config.production.json</code></p>
  <p>Also the file on the host doesn't exist yet, once I mount the container, it the container creates it.</p>
  <p>This is what I've tried:</p>
  <p><code>sudo docker run -d  -e url=http://example.com --name myBlog6 -p 3006:2376 -v &quot;$(pwd)/content6&quot;:/var/lib/ghost/content -v /home/ubuntu/config6:/var/lib/ghost/config.production.json ghost:latest</code></p>
  <p>But I'm getting this error:</p>
  <pre><code>docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused &quot;process_linux.go:449: container init caused \&quot;rootfs_linux.go:58: mounting \\\&quot;/home/ubuntu/config6\\\&quot; to rootfs \\\&quot;/var/lib/docker/overlay2/f8c4ed9231552e91caaeb4f0b8fb9f02108f838e94b659bf049a2df365cd26ef/merged\\\&quot; at \\\&quot;/var/lib/docker/overlay2/f8c4ed9231552e91caaeb4f0b8fb9f02108f838e94b659bf049a2df365cd26ef/merged/var/lib/ghost/config.production.json\\\&quot; caused \\\&quot;not a directory\\\&quot;\&quot;&quot;: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.
  </code></pre>
  <p>Thanks</p>