mirror of
https://github.com/nikdoof/cups-avahi-airprint.git
synced 2025-12-11 22:52:21 +00:00
33 lines
1.2 KiB
Markdown
33 lines
1.2 KiB
Markdown
# chuckcharlie/cups-airprint-brother
|
|
|
|
Fork from [quadportnick/docker-cups-airprint](https://github.com/quadportnick/docker-cups-airprint)
|
|
|
|
This Ubuntu-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. I am running this on CentOS, but it should work on other Linux distros. I forked the original to add support for my Brother MFC-7840w printer, and use the latest Ubuntu base.
|
|
|
|
## Configuration
|
|
|
|
### Volumes:
|
|
* `/config`: where the persistent printer configs will be stored
|
|
* `/services`: where the Avahi service files will be generated
|
|
|
|
### Variables:
|
|
* `CUPSADMIN`: the CUPS admin user you want created
|
|
* `CUPSPASSWORD`: the password for the CUPS admin user
|
|
|
|
### Ports/Network:
|
|
* Must be run on host network. This is required to support multicasting which is needed for Airprint.
|
|
|
|
### Example run command:
|
|
```
|
|
docker 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-airprint-brother:latest
|
|
```
|
|
|
|
## Add and set up printer:
|
|
CUPS will be configurable at http://[host ip]:631 using the CUPSADMIN/CUPSPASSWORD.
|
|
|