Skip to content

Saving printers to printers.conf #129

@jrmagers

Description

@jrmagers

I am running into an issue where once I add a new printer via the admin interface, the printer is not saved to printers.conf. Additionally, I have noticed that if I start the container (the first time), an empty directory called ./cups/printers.conf/ is created, rather than a file. I'm guessing that is not the intended operation.

When recreating the container, the printer that I setup does not persist.

However, if I manually create printers.conf and add a printer to it, then the printer persists after a container recreation. But adding additional printers do not persist.

Here is my docker compose file:

  cups:
    image: olbat/cupsd:stable
    container_name: cups
    dns:
      - ${DNS_SERVER}
    privileged: true
    volumes:
      - /dev/bus/usb:/dev/bus/usb
      - /run/dbus:/run/dbus
      - ./cups/cupsd.conf:/etc/cups/cupsd.conf:rw
      - ./cups/printers.conf:/etc/cups/printers.conf:rw
    ports:
      - 631:631/tcp
    restart: "always"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions