I am very new to Docker, but like it so far .
I run Docker on Windows 10 and run home assistant in a Linux container.
Home assistant needs access to an USB-device (not a harddisk) but I don’t het this done.
On a Raspberry I used ls /dev/tty* to get the names of the ports but tht doesn’t seem to work here.
For some people it works when using a compose.yml file so I created the same with this code :
version: '3' services: homeassistant: container_name: hass image: homeassistant/home-assistant volumes: - H:/Docker/Hass/config/:/config - /etc/localtime:/etc/localtime:ro devices: - /dev/ttyUSB0:/dev/ttyUSB0 - /dev/ttyUSB1:/dev/ttyUSB1 - /dev/ttyACM0:/dev/ttyACM0 restart: always network_mode: host
With docker-compose up -d I get an error saying
for homeassistant Cannot start service homeassistant: linux runtime spec devices: error gathering device information while adding custom device “/dev/ttyACM0”: no such file or directory
How to solve this ?