Comments (7)
Hi,
Macs need mdns and some added configuration for printer discoverability and AirPrint. I think iPhones and iPads can work without this, but I am not sure. I did not have an Apple device when I started this project. I've been meaning to add avahi-daemon
and test the containers out, but have not gotten around to it. I'll try to do it over the weekend. Thanks for reminding me.
Anuj
from cups-docker.
I've added the printer through my server IP (without mDNS) and it recognized the printer.
I can confirm, this is working! I was typing in the address wrong. I was extremely close though lol. I had put a / at the end of the address and I had the queue field the same. Thank you!
Do we know if this also works with AirPrint for iPhones/iPads?
from cups-docker.
Thanks for the quick response!
from cups-docker.
I've added the printer through my server IP (without mDNS) and it recognized the printer.
Important to note that i've selected "Generic PostScript Printer" drivers instead of my printer's one. I wasn't working until i've changed this (got into this issue searching for this solution)
from cups-docker.
Important to note that i've selected "Generic PostScript Printer" drivers instead of my printer's one. I wasn't working until i've changed this (got into this issue searching for this solution)
Aah, I see. Good to know. I don't have much experience with MacOS and iOS. I only ever use them when I need to fix something for my parents, lol.. The 5 minutes I spent on a it was trying to set up the printer on my parents' iPhones/iPads and Macbook. Couldn't see it when done through docker because I didn't have avahi-daemon
. But could see it if I set up CUPS directly on a Pi with avahi-daemon
installed via apt
.
Thanks,
Anuj
from cups-docker.
Running Avahi in docker and exposing the bonjour announcments is not so easy. I remember I had success when allowing the container to use the host network. Reason is that mDNS is based on udp/multicast. Docker Port-forwarding only supports tcp connections. When using the host network you have to make sure no other services use the same ports. e.g. you might have to turn off CUPS Browsing on the docker host (e.g. if you have mac).
from cups-docker.
Reason is that mDNS is based on udp/multicast. Docker Port-forwarding only supports tcp connections.
I thought Docker does have udp networking too. I hate docker networking. I remember getting IPv6 to work on docker with ufw
enabled is an absolute nightmare.
When using the host network you have to make sure no other services use the same ports. e.g. you might have to turn off CUPS Browsing on the docker host (e.g. if you have mac).
I typically use this on a Raspberry Pi or a similar SBC, so as long as CUPS is not installed on the base system everything should work even with host networking right?
Running Avahi in docker and exposing the bonjour announcments is not so easy. I remember I had success when allowing the container to use the host network.
Yeah, I have tried it in the past, I've had issues getting the cups-container to show up on a Mac, I figured it was bonjure related. But was unable to spend much time troubleshooting. I'll try it over the break, when I have access to a family macbook.
Do we know if this also works with AirPrint for iPhones/iPads?
I have printed using my mom's iPhone a long time ago. Will check again over the break. I am literally the only person in the entire family who does not have a single Apple device.
from cups-docker.
Related Issues (10)
- Persistance HOT 1
- Adding --no-install-recommends effectively removed all extra drivers HOT 1
- Failed when build in Arch=arm32v6 (Rpi zero w) HOT 1
- Enable CUPS auto discovery HOT 7
- paper size issues
- Printer not visible in Share folder HOT 2
- cannot show any printer with software HOT 3
- CUPS Fails to Detect Printer After Power Off HOT 9
- allows restarting
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-docker.