This docker file will create a virtual printer in cupsd that will output to /mnt/output
. This will allow printing
from a network postcript printer that will output a pdf to a volume or mount. You can change the output path in cups-pdf.conf
One possible use of this is in conjunection with a paperless-ngx consume directory to read pdf's.
See docker-compose.yml
for example. Names and targets can be parameterized via variables
The http/print server will listen on port 631
.
In order to make the printer discoverable, avahi needs to be set up. For it to work correctly on the network, it should share the network space
with its own IP. The easiest way to do this is to assign it a static IP in non-dhcp space via macvlan
.
Docker-compose setup, for example in 192.168.0.0/24
space.
network:
vlan:
driver: macvlan
driver_opts:
parent: eth0 #Update as necessary
ipam:
config:
- subnet: "192.168.0.0/24"
ip_range: "192.168.0.200/32"
gateway: "192.168.0.1"