Containerized Ghostscript Printer App with IPP, USB/network support.
371
The ghostscript-printer-app is a containerized Printer Application powered by Ghostscript, designed to provide versatile printing support for a variety of printers. Built on the PAPPL framework for IPP printing and enhanced with cups-filters 2.x, this application excels at rendering PostScript, PDF, and raster data for both legacy and modern printers, all within a portable Docker environment.
hplip, foo2zjs, brlaser) for compatibility with diverse printer models.To pull the image from Docker Hub, run:
sudo docker pull rudransh404/ghostscript-printer-app
Create a persistent Docker volume:
sudo docker volume create ghostscript-printer-app
Run the container:
sudo docker run -d \
--name ghostscript-printer-app \
--network host \
-e PORT=<port> \
-v ghostscript-printer-app:/var/lib/ghostscript-printer-app \
-v /dev/bus/usb:/dev/bus/usb:ro \
--device-cgroup-rule='c 189:* rmw' \
rudransh404/ghostscript-printer-app:latest
PORT (optional): Specifies the port for the printer app. Defaults to 8000 (or increments if unavailable).--network host: Required for discovering network printers.-v /dev/bus/usb:/dev/bus/usb:ro: Grants read-only access to USB devices.--device-cgroup-rule='c 189:* rmw': Ensures USB access permissions.To build and run locally:
git clone https://github.com/rudra-iitm/ghostscript-printer-app -b rudransh404
cd ghostscript-printer-app
Install Rockcraft:
sudo snap install rockcraft --classic
rockcraft pack -v
sudo rockcraft.skopeo --insecure-policy copy oci-archive:<rock_image> docker-daemon:ghostscript-printer-app:latest
sudo docker run -d \
--name ghostscript-printer-app \
--network host \
-e PORT=<port> \
-v ghostscript-printer-app:/var/lib/ghostscript-printer-app \
-v /dev/bus/usb:/dev/bus/usb:ro \
--device-cgroup-rule='c 189:* rmw' \
ghostscript-printer-app:latest
Access the web UI at:
http://localhost:<port>/
From the interface, you can:
print-quality, media) to driver options.foomatic-db and custom filters.The ghostscript-printer-app Docker image offers a powerful, containerized printing solution powered by Ghostscript. It supports a wide range of printers through diverse drivers, rendering PostScript, PDF, and raster inputs with ease. With features like IPP compatibility, CUPS-based printer discovery, and a user-friendly web interface, it provides a flexible and modern approach to printing, ideal for both legacy and contemporary workflows.
Content type
Image
Digest
sha256:d38dd6b4a…
Size
119.3 MB
Last updated
over 1 year ago
docker pull rudransh404/ghostscript-printer-app