Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker container could not open port /dev/ttyUSB0

If it is still relevant, the following solution did work for me:

docker run --gpus all -it --name [container_name] 
        -v "$(pwd)/..":/home/app 
        --privileged -v /dev/bus/usb:/dev/bus/usb 
        --privileged -v /dev/ttyACM0:/dev/ttyACM0 
        [image_container_name] bash
 
PREVIOUS NEXT
Tagged: #docker #container #open #port
ADD COMMENT
Topic
Name
8+4 =