Containerized PostScript Printer App with PPD support, USB/network access, and web-based management.
285
The ps-printer-app Docker image provides a containerized PostScript Printer Application. It serves as a retro-fit Printer Application for classic CUPS drivers, utilizing cups-filters 2.x filter functions and supporting PPD-based PostScript printers. This ensures seamless printing capabilities while leveraging modern containerization benefits.
To pull the image from Docker Hub, run:
sudo docker pull rudransh404/ps-printer-app
Create a persistent Docker volume:
sudo docker volume create ps-printer-app
Run the container:
sudo docker run -d \
--name ps-printer-app \
--network host \
-e PORT=<port> \
-v ps-printer-app:/var/lib/ps-printer-app \
-v /dev/bus/usb:/dev/bus/usb:ro \
--device-cgroup-rule='c 189:* rmw' \
rudransh404/ps-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/ps-printer-app -b rudransh404
cd ps-printer-app
Install Rockcraft:
sudo snap install rockcraft --classic
rockcraft pack -v
sudo rockcraft.skopeo --insecure-policy copy oci-archive:<rock_image> docker-daemon:ps-printer-app:latest
sudo docker run -d \
--name ps-printer-app \
--network host \
-e PORT=<port> \
-v ps-printer-app:/var/lib/ps-printer-app \
-v /dev/bus/usb:/dev/bus/usb:ro \
--device-cgroup-rule='c 189:* rmw' \
ps-printer-app:latest
Access the web UI at:
http://localhost:<port>/
From the interface, you can:
This Dockerized PostScript Printer Application is a powerful and flexible solution for managing PostScript printers in a containerized environment. It simplifies installation, configuration, and maintenance while leveraging modern printing frameworks and legacy compatibility features.
Content type
Image
Digest
sha256:d677af7ee…
Size
120.7 MB
Last updated
over 1 year ago
docker pull rudransh404/ps-printer-app