Docker usb/printer passthrought?
Posted: 16 Sep 2024, 21:05
TOS 5.1, F4-424
I'm trying to use Docker container as a network server for my USB printer.
Printer is brother hl-2240, it is working with all linux distributions I ever used.
I installed docker manager from application store, downloaded olbat/cupsd image.
Created a new container, port 631 to 631, connected volume /var/run/dbus to /var/run/dbus, as image overview suggests.
I can open CUPS web UI, but it does not see my connected printer.
Looking for recommendations, I also tried adding "volume" /dev/bus/usb, but with no results.
PS.: I also added cups folder /home/docker/ to attach as /etc/cups to store configuration, but if I do that, container just can't start. Is there some rights restrictions? I would assume docker has access to it's own home folder?
I'm trying to use Docker container as a network server for my USB printer.
Printer is brother hl-2240, it is working with all linux distributions I ever used.
I installed docker manager from application store, downloaded olbat/cupsd image.
Created a new container, port 631 to 631, connected volume /var/run/dbus to /var/run/dbus, as image overview suggests.
I can open CUPS web UI, but it does not see my connected printer.
Looking for recommendations, I also tried adding "volume" /dev/bus/usb, but with no results.
PS.: I also added cups folder /home/docker/ to attach as /etc/cups to store configuration, but if I do that, container just can't start. Is there some rights restrictions? I would assume docker has access to it's own home folder?