Skip to content

BACnet/MSTP Docker

You can run the Edge Xrt BACnet/MSTP Device Service in a docker container.

The following examples use the iotechsys/xrt:2.1 docker image.

To run the containerized Xrt BACnet/MSTP Device Service, the container must be able to access the serial device on the host that is set as the Driver option SerialInterface in the device service configuration file. This can be done by using the --device flag, providing the path to the device. An example path is provided:

  • --device /dev/tty/USB0

Run Edge Xrt with BACnet/MSTP

In the following example, xrt-bacnet-mstpprovides the name of the running container, provides the location of the config, state and profiles folders. [time_in_seconds] can optionally define the time for which Edge Xrt is to run in seconds:

docker run --rm --name xrt-bacnet-mstp \
  -v <deployment_directory>/deployment:/opt/iotech/xrt/2.1/deployment \
  --device /dev/tty/USB0 iotechsys/xrt:2.1 [time_in_seconds]