With the influx of GUI applications being ported to docker, what is the best way to print to cups from inside a docker container?
NB: I am not looking to run cups from inside the container as this breaks the single service paradigm associated with docker.
Self Documenting after investigation work on how to achieve this goal.
Mounting in the cups socket worked great...ish (acroread failed to populate printers) with an Ubuntu based docker host, however this failed with a Redhat host.
Populating the cups client.conf appeared to be a better solution.
and the docker launch argument:
I also had to ensure the cups server would bind to the docker0 bridge and allow other devices to access the cups server:
Once cups had restarted and the cups client.conf passed into the container I was able to print as expected.