Comments (3)
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.
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.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cups-airprint.