Hardware description
19/136
Enabling access for application containers
A Docker application container accessing the
ttymxc0
serial interface
must be either running as
root
user or as a member of the
dialout
group in Linux. If your container is not a
root
user, you can add the
container to the
dialout
group with the
--group-add dialout
parameter in your
docker run
command during container deployment.
Note that you must also map the
/dev/ttymxc0
interface into the
container.
The following example shows a
docker run
command for a Node-RED
container that would allow the container to access the interface:
docker run -d -p 1880:1880 --device=/dev/ttymxc0:/dev/ttymxc0 --
group-add dialout nodered/node-red
If the container is deployed via Docker Compose, you would have to add
the following lines in the *.
yml
file:
devices:
- "/dev/ttymxc0:/dev/ttymxc0"
group_add:
- dialout
netFIELD Compact X8M | User manual
DOC220302UM01EN | Revision 1 | English | 2022-05 | Released | Public
© Hilscher 2022