A Docker container for CUPS (Common UNIX Printing System) with CUPS-PDF and CUPS-BSD support.
- Based on Ubuntu 22.04.4 LTS
- CUPS 2.4.1
- CUPS-PDF 3.0.1
- CUPS-BSD 2.4.1
- CUPS with web interface
- CUPS-PDF for PDF printing
- CUPS-BSD for BSD printing support
- Configurable user authentication
- Automatic random password generation
docker pull tsc2lmy/cups-pdf:latestOR
ghcr.io/anganing/iboot-cups-container:masterRun with default credentials:
docker run -d \
--name cups-server \
-p 631:631 \
tsc2lmy/cups-pdf:latestRun with custom credentials:
docker run -d \
--name cups-server \
-p 631:631 \
-e CUPS_USER=your_username \
-e CUPS_PASSWORD=your_password \
tsc2lmy/cups-pdf:latestdocker build -t tsc2lmy/cups-pdf:latest .docker run -d \
--name cups-server \
-p 631:631 \
iboot/cups-pdf:latestThe container will:
- Create a default user
admin - Generate a random 6-character password
- Display the credentials in the container logs
To view the credentials:
docker logs cups-serverdocker run -d \
--name cups-server \
-p 631:631 \
-e CUPS_USER=your_username \
-e CUPS_PASSWORD=your_password \
iboot/cups-pdf:latest-
Open your web browser and navigate to:
http://localhost:631 -
For administrative tasks, go to:
http://localhost:631/admin -
Log in using either:
- The default credentials (shown in container logs)
- Your custom credentials (if specified)
| Variable | Description | Default |
|---|---|---|
| CUPS_USER | Username for CUPS web interface | admin |
| CUPS_PASSWORD | Password for CUPS web interface | random 6-char string |
| Port | Description |
|---|---|
| 631 | CUPS web interface and printing service |
| Component | Version | Description |
|---|---|---|
| Ubuntu | 22.04.4 LTS | Base Operating System |
| CUPS | 2.4.1 | Core Printing System |
| CUPS-PDF | 3.0.1 | PDF Virtual Printer |
| CUPS-BSD | 2.4.1 | BSD Printing Support |
- The default configuration allows access from any IP address
- It's recommended to use custom credentials in production
- Consider using a reverse proxy with SSL in production environments
This project is licensed under the MIT License - see the LICENSE file for details.