8

I'm on Windows 10 using Docker for Windows. Also, I have a container which originates FROM microsoft/windowsservercore. I have an USB device attached and want to pass it to that container.

What I found so far:

Under Linux you got --device=/dev/.., but how can I accomplish this under Windows?

Michael Friis wrote on 2017-07-07 that this is currently not possible. However, this comment states that it is.

So my questions are:

  1. Is it currently possible to pass an USB device from a Windows Host into a Windows Docker container?
  2. If yes, what is the correct syntax?
  3. If not, when approximately can we expect this feature?
Peter Mortensen
  • 30,030
  • 21
  • 100
  • 124
JustCoding
  • 339
  • 1
  • 5
  • 15

2 Answers2

1

You cannot directly pass USB to the container. Either you have to run Docker as a VM or use USB/IP (where the USB data is transferred as IP packets). But there will be a delay in the second method.

Peter Mortensen
  • 30,030
  • 21
  • 100
  • 124
0

USB passthrough is currently not supported with Windows for Docker as of November 2017:

Docker for Windows USB Support

Peter Mortensen
  • 30,030
  • 21
  • 100
  • 124
Ian Smith
  • 681
  • 1
  • 9
  • 18