Open rodhammond opened 1 year ago
I have a working CUPS compose file without privileged and without doing anything on host machine. Based on this image with included printing drivers.
name: hungry_andres
services:
cupsd:
cpu_shares: 90
command: []
container_name: cupsd
deploy:
resources:
limits:
memory: 15920M
devices:
- /dev/bus/usb:/dev/bus/usb
hostname: cupsd
image: olbat/cupsd:latest
ports:
- target: 631
published: "631"
protocol: tcp
restart: unless-stopped
volumes:
- type: bind
source: /var/run/dbus
target: /var/run/dbus
cap_add: []
environment: []
network_mode: bridge
privileged: false
x-casaos:
author: self
category: self
hostname: casaos.local
icon: https://raw.githubusercontent.com/vinceliuice/WhiteSur-icon-theme/master/src/apps/scalable/printer.svg
index: /
is_uncontrolled: false
port_map: "631"
scheme: http
store_app_id: hungry_andres
title:
custom: CUPS
Back in the original RPi Project days, creating a print server for Windows, Linux, and MacOS hosts was a pretty popular topic. Would be nice to see you honor this tradition win an App Store Container.
REF: 1. https://medium.com/swlh/setup-a-print-server-using-raspberry-pi-cups-part-1-c8f3d48af047
Thanks