Docker images including CUPS print server:
- Ubuntu version : A special version with official brother drivers targeted on i386 architecture.
https://hub.docker.com/r/dungtri/cups-ubuntu-386 - As alternative an Linux Alpine version : the image is very lightweight and can be run on multiple architectures : armv7, aarch64 and amd64.
https://hub.docker.com/r/dungtri/cups
Use lsusb command to display the bus and device ids on which port your usb printer is connected.
$ lsusb
Return as example :
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 04f9:004a Brother Industries, Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Then use the device path /dev/bus/usb/001/002
$ docker run --name cups -d \
-e CUPS_USER_ADMIN=admin \
-e CUPS_USER_PASSWORD=S@cret \
-p 631:631/tcp \
--device=/dev/bus/usb/xxx/yyy \
dungtri/cups-ubuntu-386:latest
Checkout the project and run the following command :
$ ./build