It tries to learn the use of the Dockerfile and be able to change the user's password: "print"
Original image is built from https://github.com/olbat/dockerfiles/tree/master/cupsd
This image is built from https://github.com/MilorES/dockerfile-cupsd
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 milores/cupsd:v1
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 milores/cupsd:v1`
- 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