aguslr/cups
This Docker image sets up CUPS inside a docker container.
CUPS is a modular printing system for Unix-like computer operating systems which allows a computer to act as a print server.
To use docker-cups, follow these steps:
Download your printer drivers in DEB format into a directory named
./drivers
.
Clone and start the container:
docker run --privileged -p 631:631 \
-e CUPS_USER=admin \
-e CUPS_PASS=admin \
-v /dev/bus/usb:/dev/bus/usb \
-v /run/dbus:/run/dbus \
-v "${PWD}"/drivers:/opt/drivers \
docker.io/aguslr/cups:latest
Open http://127.0.0.1:631 with your web browser to access CUPS.
The image is configured using environment variables passed at runtime. All these
variables are prefixed by CUPS_
.
Variable | Function | Default | Required |
---|---|---|---|
USER | Username of CUPS user | admin | N |
PASS | Password of CUPS user | autogenerated | N |
To see the default autogenerated password, check the log for the container:
docker logs <container_name> | grep '^Password'
Instead of pulling the image from a remote repository, you can build it locally:
Clone the repository:
git clone https://github.com/aguslr/docker-cups.git
Change into the newly created directory and use docker-compose
to build and
launch the container:
cd docker-cups && docker-compose up --build -d
docker pull aguslr/cups