hilscher netFIELD Compact X8M User Manual page 19

Table of Contents

Advertisement

Hardware description
netFIELD Compact X8M | User manual
DOC220302UM01EN | Revision 1 | English | 2022-05 | Released | Public
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
19/136
© Hilscher 2022

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nfx8m-d2-n32-010

Table of Contents