Docker. Can't hook up any device

Just installed a fresh Fedora 44 KDE (+updates) on a fresh system. Installed Docker desktop using the RPM file - Install Docker Desktop on Fedora | Docker Docs

After booting everything up, tried running Zigbee2MQTT using Docker.

Can’t seem to pass the point of:

-devices:
  - /dev/ttyUSB0:/dev/...

with docker giving out an error that it cannot locate /dev/ttyUSB0, while ll /dev/ttyUSB0 states that all is fine, where I have the same device connected to the USB0 port (I address it by /dev/serial/by-id/...)

This flow works on my previous system. But here I am seem to be stuck (and clearly lack the needed Linux skill to proceed).

Please help!

P.S.: I am thinking that this may be somehow related to the .rpm installation in some way, and maybe a good old dnf install would be better, but I do like Docker Desktop, and plan to move things to the Kubernetes local dev cluster it provides (simply because I am reading a book on Kubernetes at the moment).

Hi,

Recently I’ve got a similar issua with docker but in my case it was with shared volume. Turned out that Selinux was blocking the shared volume operation.

In a quick search on google about USB in Docker with Selinux it suggested this “security_opt” option:

devices:
  - "/dev/ttyUSB0:/dev/ttyUSB0"
security_opt:
  - "label=disable"

Hope it helps.

Thanks. After a full day of meddling, I ended up replacing Docker Desktop with regular Docker (people from a different forum said that Docker Desktop spins up in a VM, thus cannot reach /dev properly). And there it worked like a charm.