Docker image including CUPS print server and printing drivers (installed from the Debian packages).
Using the default cupsd.conf configuration file:
docker run -d -p 631:631 -v /var/run/dbus:/var/run/dbus --name cupsd olbat/cupsd
Using a custom cupsd.conf configuration file:
docker run -d -p 631:631 -v /var/run/dbus:/var/run/dbus -v $PWD/cupsd.conf:/etc/cups/cupsd.conf --name cupsd olbat/cupsd`
Note: the following mount can be added to configure a printer connected through USB -v /dev/bus/usb:/dev/bus/usb
see #103 (comment)
Note (bis): if the daemon fails to start with a cupsdDoSelect() failed
error, you can fix the issue by adjusting the container's ulimit
configuration, see #111 (comment)
- Connect to the Cups server at http://127.0.0.1:631
- Add printers: Administration > Printers > Add Printer
Note: The admin user/password for the Cups server is print
/print
- Install the
cups-client
package - Edit the
/etc/cups/client.conf
, setServerName
to127.0.0.1:631
- Test the connectivity with the Cups server using
lpstat -r
- Test that printers are detected using
lpstat -v
- Applications on your machine should now detect the printers!
- cups, cups-client, cups-filters
- foomatic-db
- printer-driver-all, printer-driver-cups-pdf
- openprinting-ppds
- hpijs-ppds, hp-ppd
- sudo, whois
- smbclient
This Dockerfile can be used to build an image is containing most of the printing drivers packaged by Debian's team and allows to run a CUPS daemon to create a remote print server.
Now, this is as good as it gets! This repository has nothing to do with maintaining/debugging/supporting printer drivers packaged in Debian or the CUPS service.
If you need support on those topics, please try to reach out to the relevant support channels:
- Debian forums
- Debian "printing" team
- cups mailing list
- or one of the many other options you could easily find using your favorite search engine!
If you have some questions about how to start the container, make it accessible through your local network, run it on your NAS, etc. again, this is not the good place to ask them.
In that case, please reach out to the relevant support channels. If you have an issue related to Docker's networking, I also strongly advise you to have a look at Docker's documentation page on that topic to get a good grasp on the main concepts in play.