A CUPS server in CentOS, ready to install printers and run in production
3.6K
A CUPS server installed in CentOS 7.
Examples use docker-compose >= 1.2. If you do not have it, install it in a virtualenv with:
./setup.sh
You can use this image with 2 methods:
Secured. Default behavior.
./docker-compose -f production.yml up
Permissive. All users can do everything without authentication, except adding, modifying and deleting printers and classes, and setting the default options.
./docker-compose -f production.permissive.yml up
The server comes with two users preconfigured:
admin, with password ad1234. Belongs to group sys.
user, with password us1234. Belongs to group lp.
If you want to change those, use lppasswd and add your custom
/etc/cups/passwd.md5 file:
FROM yajo/cupsd
ADD passwd.md5 /etc/cups/
Use lpadmin in /opt/install-printers.sh:
Your Dockerfile for installing an HP printer could be:
FROM yajo/cupsd
RUN yum -y install hplip && yum clean all
ADD install-printers.sh /opt/
And your /opt/cups/install-printers.sh could contain:
#!/usr/bin/bash
set -x
lpadmin -U admin -p color-printer -v ipp://192.168.0.100 -E \
-P /usr/share/ppd/HP/hp-officejet_pro_451_series-ps.ppd.gz
It will be executed and then removed.
Content type
Image
Digest
sha256:639f70309…
Size
101.8 MB
Last updated
almost 11 years ago
docker pull yajo/cupsd