Fork from chuckcharlie/cups-avahi-airprint
This "reUbuntunized" Docker image runs a CUPS instance that is meant as an AirPrint relay for printers that are already on the network but not AirPrint capable. I forked chuckcharlie's project because I need the support for Canon printers using the proprietary USB over IP BJNP protocol. I switches back to Ubuntu as base OS because I was not able to add the package cups-backend-bjnp
to the Alpine version.
/config
: where the persistent printer configs will be stored/services
: where the Avahi service files will be generated
CUPSADMIN
: the CUPS admin user you want created, if not set, the default "cupsadmin" will be usedCUPSPASSWORD
: the password for the CUPS admin user, if no set, the name of the admin user will be usedTZ
: the local time zone in the Area/Location-Format like "Europe/Berlin" to adjust the time stamps in the job list to the local tine, if not set, UTC will be used
- Must be run on host network. This is required to support multicasting which is needed for Airprint.
docker run --name cups-airprint --restart unless-stopped --net host \
-v <your services dir>:/services \
-v <your config dir>:/config \
-e CUPSADMIN="<username>" \
-e CUPSPASSWORD="<password>" \
-e TZ="<timezone>" \
thoschworks/cups-airprint-bjnp:latest
- CUPS will be configurable at http://[host ip]:631 using the CUPSADMIN/CUPSPASSWORD.
- Make sure you select
Share This Printer
when configuring the printer in CUPS. - After configuring your printer, you need to close the web browser for at least 60 seconds. CUPS will not write the config files until it detects the connection is closed for as long as a minute.
- chuckcharlie for the enhancements on the project
- quadportnick for the original repository
- tjfontaine for
airprint-generate.py
- mainto for the inspirations how to "reUbuntunize" the Dockerfile