title: mapping all available devices in docker-compose
body: <p>I have a working docker-compose where I now need to bind not only one specific device but all available devices.</p>
  
  <p>So instead of having something like:</p>
  
  <pre><code>devices
    - '/dev/serial0:/dev/serial0'
  </code></pre>
  
  <p>I would like to do something like:</p>
  
  <pre><code>devices
    - '/dev:/dev'
  </code></pre>
  
  <p>This gives me the following error:</p>
  
  <pre><code>container init caused \"rootfs_linux.go:70: creating device nodes caused \\\"open /var/lib/docker/devicemapper/mnt/6a4...05af/rootfs/dev/pts/0: permission denied\\\"\"": unknown
  </code></pre>
  
  <p>I could I map all devices to my container?</p>