Skip to content

BLE Docker

You can run the XRT BLE Device Service in a docker container.

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

To run the BLE Device Service, you must have bluez and dbus running on the host. The container must also be run with the following options:

  • --security-opt apparmour=unconfined
  • -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket

Run XRT with BLE

In the following example xrt-ble provides 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 XRT is to run in seconds:

docker run --rm --name xrt-ble -v <deployment_directory>/deployment:/opt/iotech/xrt/deployment \
--security-opt apparmour=unconfined \
-v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket \
iotechsys/xrt:2.0 [time_in_seconds]
Back to top