Docker usb/printer passthrought?

Discussion about Docker
Locked
User avatar
imminentDelivery
Posts: 3
Joined: 09 Sep 2024, 16:47
Estonia

Docker usb/printer passthrought?

Post by imminentDelivery »

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?
User avatar
VeronicaJJones
Posts: 1
Joined: 10 Jan 2025, 11:29
American Samoa

Re: Docker usb/printer passthrought?

Post by VeronicaJJones »

The problem is connecting USB printers to Docker containers, especially with CUPS. I think users should be looking for quick solutions to access issues.
Locked

Return to “Docker”