Docker container should be able to interact with host avahi-daemon

Open
#25 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
docker

Research direction

Start by inspecting the container configuration and startup behavior around /var/run/dbus, then compare the described CUPS bind-mount approach. Done means the container can use the host avahi-daemon to expose printers without its D-Bus daemon overwriting the host socket or requiring port 5353 to be rebound.

Written by the indexing model from the issue text.

Description

On systems like TrueNAS, it is not possible to disable the host's avahi-daemon, and it takes over the 5353 port on every interface. Which means that the docker container cannot expose printers to the network.

Currently, attempting to bind-mount /var/run/dbus to the docker container in an attempt to make it use the system avahi-daemon makes the host very unhappy because the container's dbus daemon stomps the host's file.

With CUPS, you can bind-mount /var/run/dbus to a container that runs CUPSD and it happily uses that avahi-daemon to share printers over the network.

Dominant language
PostScript
Stars
44
Forks
26
Avg merge
9h 17m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenPrinting/ghostscript-printer-app

All issues in OpenPrinting/ghostscript-printer-app

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.