Git Product home page Git Product logo

Comments (3)

hans362 avatar hans362 commented on August 23, 2024 1

I encountered the same problem as yours, and I have found a solution.

First, you have to make sure that your container is running in host network.

Then, you have to install avahi packages on your host machine.
sudo apt-get install avahi-daemon avahi-utils

Finally, you have to enable avahi reflector by modifying /etc/avahi/avahi-daemon.conf on your host machine.
Change #enable-reflector=no to enable-reflector=yes

Restart the avahi service on your host machine by running sudo service avahi-daemon restart and restart your container. Hopefully, you will find your printer on your iOS devices.

from cups-airprint.

RagingTiger avatar RagingTiger commented on August 23, 2024

tl;dr I have no experience with this problem .... unfortunately.

SHORT EXPLANATION
I have never had problems discovering the printer via iOS device ... granted I have never extensively printed using my iOS device ... I predominantly print from a macOS laptop.

LONG EXPLANATION
My usage case for this Docker image has always been to setup a Raspberry Pi on my local network (wired), install Docker, connect whatever printer(s) to it, deploy this image, configure everything, and print from my laptop.

I am also not the original author, and as such, have not extensively studied the scripts being used to configure the container. So I do not know what role the .service file plays in avahi discovery, or iOS. You might consider looking through the issues on the original author's GitHub repo: https://github.com/quadportnick/docker-cups-airprint.

from cups-airprint.

P1Rebo avatar P1Rebo commented on August 23, 2024

@gid204 Thanks a lot for providing this docker image.
It might make sense to add this info to the readme.

@hans362 Thank you, this helped out also in my case, using a RPi4 with Arch Linux.
With Arch Linux simply install the avahi package.
pacman -S avahi

Edit the config file, e.g. using nano
nano /etc/avahi/avahi-daemon.conf

Change #enable-reflector=no to enable-reflector=yes

Afterwards, start and enable the avahi daemon on host using
systemctl start avahi-daemon.service
systemctl enable avahi-daemon.service

After restart of the container it worked like a charm!

from cups-airprint.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.