SSH access to the host for running in Docker?


I’m trying to transfer from RPi3 to a NUC running Ubuntu with Docker. I have installed in Docker but can’t get my USB devices (a Aeon Z-Wave USB stick and a RFXtrx433E) connected.

With running on a RPi3 I have needed to enable SSH access to the host ( and then using the “ls -al /dev/serial/by-id” command to find the attached devices (Can't get RFXtrx to work on!).

However, I can’t seem to get this to work on the NUC running in Docker.

When using -> System -> Hardware I get a reaaly long list of devices without information about what devices are attached so this is not very helpful.

Is it possible to find the path to attached USB devices using the “ls -al /dev/serial/by-id” when using Docker? How? Is there a better and easier way of finding the right paths to attached USB devices when using

Thanks in advance!

in docker you need to share your USB devices.
If you’re not on a RPi, I suggest installing docker-compose which is much easier to use for docker.
This is my docker-compose with an RFXTrx:

  version: '3'

      container_name: ha
      image: homeassistant/home-assistant:0.94.1
        - /home/cctv/docker_ha:/config
        - /etc/localtime:/etc/localtime:ro
        - /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1XETWB5-if00-port0:/dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1XETWB5-if00-port0
      restart: always
      network_mode: host

OK, that sounds a bit complicated. I’ll check out docker-compose!

Maybe I should just install the image directly on the NUC instead of using Ubuntu and Docker? Would everything work exactly as on a RPi then?

you can’t install directly as far as I know as it’s a different OS/architecture. Docker is relatively easy to install and takes care of all dependencies.
Docker-compose makes it even easier to use

It’s possible to install directly on NUC ( but you need to remove the SSD/HDD and flash the image directly.

yes, there is a way (there always is). Only thing is, if you install you can’t do much else.
I’d personally install stock Ubuntu and docker. If you really want to install, I’m afraid I won’t be of much help as I have no experience with it…