Iotedge: How mapping usb port on host to container ?

Created on 28 Mar 2019  Â·  1Comment  Â·  Source: Azure/iotedge

I want to mapping usb port on host to container. if directly runs container not by iotedge , I can do that by using this option "--device=/dev/ttyUSB0" . if runs container by iotedge , I don't know what I should fill to the createoption of container.

I'm not going to be able to complete the mapping if I try filled that like below picture:
1553761168(1)

I want to consult what I should fill to containers option to complete mapping。

customer-reported iotedge question

Most helpful comment

Here is an example:

{
 "HostConfig": {
   "User": "root",
   "Privileged": true,
   "Devices": [
     {
       "PathOnHost": "/dev/ttyACM0",
       "PathInContainer": "/dev/ttyACM0",
       "CgroupPermissions": "mrw"
     }
   ]
 }
}

>All comments

Here is an example:

{
 "HostConfig": {
   "User": "root",
   "Privileged": true,
   "Devices": [
     {
       "PathOnHost": "/dev/ttyACM0",
       "PathInContainer": "/dev/ttyACM0",
       "CgroupPermissions": "mrw"
     }
   ]
 }
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

alaendle picture alaendle  Â·  4Comments

rajatkumarsarma picture rajatkumarsarma  Â·  4Comments

josiahlaivins picture josiahlaivins  Â·  6Comments

Lexmark-pcarey picture Lexmark-pcarey  Â·  4Comments

nhuurnink picture nhuurnink  Â·  6Comments