Hi, Im trying to use nrfjprog from inside a docker container (ubuntu). I have started the container with --privileged and it seem to work but when i try to run the container with --device=/dev/serial/by-id/usb-SEGGER_XXX for example nrfjprog --deviceversion gives the following error message bellow. nrfjprog -i seem to work in both with --privileged and --device
ERROR: [ Client] - stderr: JLinkGUIServerExe: cannot connect to X server
ERROR: Unable to connect to a debugger.
ERROR: [SeggerBackend] - JLinkARM.dll Open returned error 'Cannot connect to J-Link.'
ERROR: [SeggerBackend] - JLinkARM.dll Open returned error 'Failed to open DLL'
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.
Is there anything more that needs to be configured to be able to fully use nrfjprog from withing a docker image with --device and not --privileged?