Home assistant - Docker USB Mount help

So guys i was trying to mount my hidraw device for wyse sense.

Enviornment: Ubuntu 18.04 server with Docker container running Hassio

Here is my docker container:

viperbe@vpnserver:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f886f655acb7 hassioaddons/home-panel-amd64:1.4.6 “/init” 5 hours ago Up 5 hours addon_a0d7b954_home-panel
e9737777c18d homeassistant/amd64-addon-configurator:3.7 “/run.sh” 5 hours ago Up 5 hours addon_core_configurator
df0aa97da894 homeassistant/amd64-addon-samba:9.0 “/run.sh” 5 hours ago Up 5 hours addon_core_samba
e4e4837819f2 hassioaddons/tautulli:1.3.0 “/init” 5 hours ago Up 5 hours 0.0.0.0:8009->8181/tcp addon_a0d7b954_tautulli
bbabb4432a45 hassioaddons/grocy-amd64:0.3.2 “/init” 5 hours ago Up 5 hours addon_a0d7b954_grocy
77921bdbdc9d hassioaddons/chrony-amd64:1.0.5 “/init” 5 hours ago Up 5 hours 0.0.0.0:123->123/udp addon_a0d7b954_chrony
9b308b1ed6cc homeassistant/amd64-hassio-dns:1 “coredns -conf /conf…” 5 hours ago Up 5 hours hassio_dns
a42e0e700c9b homeassistant/qemux86-64-homeassistant:0.103.0 “/bin/entry.sh pytho…” 33 hours ago Up 5 hours homeassistant
a9741afee7fc homeassistant/amd64-hassio-supervisor “/bin/entry.sh pytho…” 6 weeks ago Up 5 hours hassio_supervisor

Here is my device:

viperbe@vpnserver:~$ dmesg | grep hidraw
[ 3.246054] hidraw: raw HID events driver (C) Jiri Kosina
[ 3.265270] hid-generic 0003:0E0F:0003.0001: input,hidraw0: USB HID v1.10 Mouse [VMware VMware Virtual USB Mouse] on usb-0000:02:01.0-1/input0
[ 4.292299] hid-generic 0003:1A86:E024.0002: hiddev0,hidraw1: USB HID v1.00 Device [HID 1a86:e024] on usb-0000:02:01.0-2.1/input0

Its HiDraw1

When i try to mount in docker i get the following error:

viperbe@vpnserver:~$ sudo docker run -i -t -v --device=/dev/hiddev0 homeassistant /bin/bash
[sudo] password for viperbe:
Unable to find image ‘homeassistant:latest’ locally
docker: Error response from daemon: pull access denied for homeassistant, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied.
See ‘docker run --help’.
viperbe@vpnserver:~$ sudo docker run -i -t -v --device=/dev/hidraw1 homeassistant /bin/bash
Unable to find image ‘homeassistant:latest’ locally
docker: Error response from daemon: pull access denied for homeassistant, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied.
See ‘docker run --help’.

Here is my fdisk list after usb is plugged in. You can see the vm only sees it as hidraw1 above.

viperbe@vpnserver:~$ sudo fdisk -l
Disk /dev/loop0: 89.1 MiB, 93417472 bytes, 182456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop1: 89.1 MiB, 93429760 bytes, 182480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/sda: 100 GiB, 107374182400 bytes, 209715200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 4DF71AFD-EB6F-4423-B5F6-C031600EA97C

Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 209713151 209709056 100G Linux filesystem

Can someone tell me what im doing wrong?

The docker image is not just homeassistant. It’s homeassistant/home-assistant

Also, please format your logs and code. It’s nasty looking in the forum