Hi,
I noticed the Docker command in the academy instructions uses:
docker run --rm -it --device /dev/dri/card0 --device /dev/dri/renderD128 -p 7164:7164 -p 6080:6080 -p 1108:1108 -p 7163:7163 jderobot/robotics-backend:latest
On systems like mine, where the graphics card is at /dev/dri/card1
instead of card0
, the command fails. To make it more compatible for all users, I suggest dynamically selecting the card with “ls /dev/dri/card* | head -n 1
”:
docker run --rm -it --device $(ls /dev/dri/card* | head -n 1) --device /dev/dri/renderD128 -p 7164:7164 -p 6080:6080 -p 1108:1108 -p 7163:7163 jderobot/robotics-backend:latest
This would avoid failures on systems with different configurations,
Sam