Hi!
I have the same problem, running docker 2.2.0-amd64-debian
The problem started after a reboot last week (before that all was ok and worked), I updated some packages on my host, and the openhab docker image.
I can solve the problem by setting
"sudo chmod 777 /dev/ttyACM0"
But it should not be nessessary.
I think something has changed in the docker image, maybe something(inside docker) is using the port that is not changed to user set by “-e USER_ID”.
There is mentioning about the docker setting "–user " in the documentation, but with that setting the docker image does not start. This should be fixed or mentioning of “–user …” should be removed from documentation.
I have my user in dialout and tty groups and run docker like:
/dev/ttyUSBZwave has a symbilic link to /dev/ttyACM0 from an udev rule:
SUBSYSTEM=="tty", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", SYMLINK+="ttyUSBZwave"
docker run \
-dit \
--name openhab \
--net=host \
--device=/dev/ttyUSBZwave:rwx \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
-v ${BASE}/conf:/openhab/conf \
-v ${BASE}/userdata:/openhab/userdata \
-v ${BASE}/addons:/openhab/addons \
-v ${BASE}/.java:/openhab/.java \
-e USER_ID=$(id -u) \
-e GROUP_ID=$(id -g) \
-e OPENHAB_HTTP_PORT=9070 \
-e OPENHAB_HTTPS_PORT=9071 \
-e EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSBZwave" \
--restart=always \
openhab/openhab:2.2.0-amd64-debian