title: docker: how to make all devices available?
body: <p>I am using a docker container to play around with some hardware. Some of them specifically need a <code>/dev/tty[something]</code>.</p>
  
  <p>I know that I can always do <code>docker run --device=/dev/tty[something]</code>, but this is not very flexible as the specific device may not be plugged in at startup.</p>
  
  <p>I read that alternatively, I can do <code>--privileged --volume="/dev/bus/usb:/dev/bus/usb:rw"</code> if I want to access a usb, but it turns out they specifically need the <code>/dev/tty[]</code>. Could I just do <code>--privileged --volume="/dev:/dev:rw"</code> to have everything available? Would this cause any problems with the host or the container?</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>I'm looking for a method where I can plug and play any USB device in the container.</p>