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
You can’t access hardware devices from Docker on Windows. Docker Desktop runs in Hyper-V and therefore is isolated from the base system.
This topic was discussed several times in the Homeassistant forum. If you need acccess to hardware to connect to your infrastructure, install it on Linux.
And by the way, there is no /etc/localtime on Windows, you have to use an environment variable to set the time zone.
That was something else I ran into
I installed docker on a windows machine to find out if I could understand how it works, before I buy a new Snology Nas. So you are saying running when Docker on a Synology Nas and home assistant in a container I will not get this kind of problems ?
I thought Windows Docker emulates a linux machine.
Lot to learn
I don’t say anything about Synology because I’ve never tried. But on home-assistant.io you find an example about how to connect a Z-Wave stick, so you can expect it works. If a device with a rather high power consumption is the right choice for a house automation server is another question.
Docker Desktop runs on a Linux virtual machine in Hyper-V, it’s not an emulation. If you open the Hyper-V Manager you find a ‘DockerDesktopVM’ and can inspect its properties.