title: Is it possible to access a hardware device with a Docker image under Windows?
body: <p>Recently, a <a href="https://docs.docker.com/windows/step_one/" rel="noreferrer">native Docker client</a> for Windows was released (>= Windows 7).</p>
  
  <p>I wonder: <strong>is it possible to forward access to physical devices, running Windows as host</strong>?</p>
  
  <p>With a *nix host, this seems to be possible with the following syntax:</p>
  
  <pre><code>docker run -t -i --device=/dev/ttyUSB0 ubuntu bash
  </code></pre>
  
  <p>(as proposed <a href="https://stackoverflow.com/a/30205490/275195">here</a>) which would forward the USB device <code>/dev/ttyUSB0</code> on a *nix system to the docker image.</p>
  
  <p>A description of the <code>--device</code> flag can be found in the <a href="https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities" rel="noreferrer">docker docs</a>.</p>
  
  <p><strong>What would be the syntax for a Windows host?</strong></p>