Expose USB dongle to Docker container

find the device id :

ls /dev/serial/by-id/

replace device_id with yours :

docker run -d --name home-assistant --device=/dev/serial/by-id/device_id
docker stop home-assistant
docker start home-assistant

or

sudo systemctl daemon-reload
1 Like