Fork from quadportnick/docker-cups-airprint
Use the latest or version# tags to auto choose the right architecture.
This Alpine-based 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. The other images out there never seemed to work right. I forked the original to use Alpine instead of Ubuntu and work on more host OS's.
/config
: where the persistent printer configs will be stored/services
: where the Avahi service files will be generatedCUPSADMIN
: the CUPS admin user you want created - default is CUPSADMIN if unspecifiedCUPSPASSWORD
: the password for the CUPS admin user - default is the same value as CUPSADMIN
if unspecifieddocker run --name cups --restart unless-stopped --net host\
-v <your services dir>:/services \
-v <your config dir>:/config \
-e CUPSADMIN="<username>" \
-e CUPSPASSWORD="<password>" \
chuckcharlie/cups-avahi-airprint:latest
version: '3.5'
services:
cups:
image: chuckcharlie/cups-avahi-airprint:latest
container_name: cups
network_mode: host
volumes:
- </your/services/dir>:/services
- </your/config/dir>:/config
environment:
CUPSADMIN: "<YourAdminUsername>"
CUPSPASSWORD: "<YourPassword>"
restart: unless-stopped
Share This Printer
when configuring the printer in CUPS.