title: Pass configuration file to mosquitto in Docker container
body: <p>Trying to run masquitto Docker container on Windows. I have directory structure:</p>
  <pre><code>..
  mosquitto
    config
       -- mosquitto.conf
    data
    log
  </code></pre>
  <p>I run command:</p>
  <pre><code>docker run -it -p 1883:1883 -p 9001:9001 -v mosquitto.conf:/mosquitto/config/mosquitto.conf -v /mosquitto/data -v /mosquitto/log eclipse-mosquitto
  </code></pre>
  <p>Got error:</p>
  <pre><code>docker: Error response from daemon: source /var/lib/docker/overlay2/c54f317f73085489398e1b2c4ffbc85fbdb18073e8a0fa60f11a7f7222fbc49d/merged/mosquitto/config/mosquitto.conf is not directory.
  See 'docker run --help'.
  </code></pre>
  <p>What I do wrong?</p>
  <p>UPD</p>
  <p>I tried to provide full path to config file on host machine:</p>
  <pre><code>docker run -it -p 1883:1883 -p 9001:9001 -v C:/docker_tst/eclipse-mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf  eclipse-mosquitto
  </code></pre>
  <p>Got error:</p>
  <pre><code>docker: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting &quot;/run/desktop/mnt/host/c/docker_tst/eclipse-mosquitto/mosquitto.conf&quot; to rootfs at &quot;/var/lib/docker/overlay2/d9a7cbcb0f85b195dc5ee2d0999b3df8c84324552f6c45cf218876e9b96ed826/merged/mosquitto/config/mosquitto.conf&quot; caused: not a directory: 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.
  PS C:\docker_tst\eclipse-mosquitto&gt;
  </code></pre>