Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mounting volume for passing printer seems not to work anymore #103

Open
ziipzaaapM16A4 opened this issue Feb 23, 2024 · 2 comments
Open

Comments

@ziipzaaapM16A4
Copy link

ziipzaaapM16A4 commented Feb 23, 2024

passing the printer by volume like this
-v /var/run/dbus:/var/run/dbus
seems not to work anymore.
i got it working again with
--device /var/run/dbus/<busOfYourHost>/<deviceNumber>
figured out the bus number and device number by lsusb

@olbat
Copy link
Owner

olbat commented Mar 31, 2024

Thank you for sharing this, I'll give it a shot and update the doc.

@xf22cn
Copy link

xf22cn commented Jun 24, 2024

sudo docker run -d -p 631:631 -v /var/run/dbus:/var/run/dbus -v /dev/bus/usb:/dev/bus/usb --privileged=true --name cupsd olbat/cupsd

I used the above command to create a container, found and installed the printer.
At first, I used the command provided by the author to create a container, but I couldn't find the printer.
This problem has also been encountered by someone before, and it was his proposed solution. The original link is as follows:

https://forum.openmediavault.org/index.php?thread/43736 -switch-off-and-on-re-plug-usb-printer-with-olbat-cupsd/

Note that the container runs in privileged mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants