This image is built from https://github.com/jichangfeng/docker-cups
Docker image including CUPS print server and printing drivers (installed from the Ubuntu/Debian packages).
docker pull jichangfeng/cups:ubuntu OS/ARCH: linux/amd64, linux/arm64/v8, linux/arm/v7docker pull jichangfeng/cups:debian OS/ARCH: linux/amd64, linux/arm64/v8, linux/arm/v7, linux/386# Run the container
docker run -d --restart always -p 631:631 -v $(pwd):/etc/cups jichangfeng/cups:ubuntu
# Run the container with the specified architecture
docker run --platform linux/arm64/v8 -d --restart always -p 631:631 -v $(pwd):/etc/cups jichangfeng/cups:ubuntu
The /etc/cups directory is the directory used to store configuration files and related settings for CUPS.
Choose to mount /etc/cups to the container so that the added printers will not be lost after the container is destroyed and restarted.
In addition, the /var/spool/cups directory is used for storing temporary files, print jobs, and log information for CUPS.
Choose to mount /var/spool/cups to the container ensures that any added print jobs will persist even if the container is destroyed and restarted.
Login in to CUPS web interface on https://127.0.0.1:631 and configure CUPS to your needs. Default credentials: admin / admin
To change the admin password set the environment variable ADMIN_PASSWORD to your password.
docker run -d --restart always -p 631:631 -v $(pwd):/etc/cups -e ADMIN_PASSWORD=AnySecretPassword jichangfeng/cups:ubuntu
cups-client package/etc/cups/client.conf, set ServerName to 127.0.0.1:631lpstat -rlpstat -vFor more usage, refer to Printer Sharing / Automatic Configuration using IPP
Content type
Image
Digest
sha256:49a080679…
Size
209.5 MB
Last updated
almost 3 years ago
docker pull jichangfeng/cups:ubuntu