Hello,
I'm using Proxmox 8.2.8 (just updating to have USB passthourgh).
I try to create a new container for zigbee2mqtt. I created a LXC in Proxmox and use other containers with success since months.
I tried to create this using a Stacks with Portainer but i got the same error with docker.
From host :
From CT "docker" i can see the mapping :
I run this :
And got this error :
Could you help ? I tried many things since hours but nothing works.
I'm using Proxmox 8.2.8 (just updating to have USB passthourgh).
I try to create a new container for zigbee2mqtt. I created a LXC in Proxmox and use other containers with success since months.
I tried to create this using a Stacks with Portainer but i got the same error with docker.
From host :
Code:
root@pve2yp:~# ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Nov 16 19:39 usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB0
From CT "docker" i can see the mapping :
Code:
root@docker:~# ls -l /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
crw-rw---- 1 root root 188, 0 Nov 16 18:41 /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
I run this :
Code:
docker run \
--name zigbee2mqtt \
--restart=unless-stopped \
--device=/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0:/dev/ttyUSB0 \
-p 8080:8080 \
-v /srv/docker/zigbee2mqtt/data:/app/data \
-v /run/udev:/run/udev:ro \
-e TZ=Europe/Paris \
koenkk/zigbee2mqtt
And got this error :
Code:
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error creating device nodes: mount /dev/ttyUSB0:/var/lib/docker/overlay2/57907ebd0d70e18055abb8b88420afde7dcd73cbcc0c4c8c933e26e392a3324e/merged/dev/ttyUSB0 (via /proc/self/fd/6), flags: 0x1000: no such file or directory: unknown.
ERRO[0000] error waiting for container:
Could you help ? I tried many things since hours but nothing works.