basecamp / pow

Zero-configuration Rack server for Mac OS X
http://pow.cx/
MIT License
3.41k stars 258 forks source link

POW DNS routing breaks Docker #528

Open dougvk opened 8 years ago

dougvk commented 8 years ago

All my Docker containers couldn't connect to the internet. It took a while to figure out it was POW.

JustinAiken commented 8 years ago

:+1:

Conversely, installing the mac docker beta seems to have broken pow :/

justincormack commented 8 years ago

Yes, we have had a lot of reports of issues with pow. If anyone needs a fast track invite to help fix this let me know.

JustinAiken commented 8 years ago

Ooh, I was wrong - docker didn't break pow, that was my VPN.

But pow definitely breaks docker :stuck_out_tongue:

ktheory commented 8 years ago

I have an inverse issue, which I'm presuming is related. After starting or stopping Docker for Mac Beta Version 1.11.0-beta6 (build: 5404), Pow port forwarding doesn't work.

I.e., running curl -vH host:pow "127.0.0.1/status.json" fails with "Connection refused" after starting or stopping Docker.

I found a workaround (from the Troubleshooting guide) to reload packet filter rules fixes Pow, without breaking docker:

sudo pfctl -f /etc/pf.conf; sudo pfctl -e
ktheory commented 8 years ago

FYI, I tried using the default packet filter namespace from #521, and that didn't fix broken Pow rules after starting/stopping docker. My pfctl-fu is too weak to debug further.

Also, seems fair to link to the corresponding Docker for Mac forum discussion about Pow.

Both Pow & Docker modify OS X network settings; and it has not (yet) been established what app change could mitigate/resolve the conflict.

stereodenis commented 8 years ago

any updates on this?

ktheory commented 8 years ago

@stereodenis WFM w/ recent Docker for Mac betas: https://forums.docker.com/t/dns-issue-with-building-ruby-image/8060/9

bobmaerten commented 8 years ago

I think this is not directly related to Docker, as I use Veertu for virtualization, which uses native hypervisor.framework from OS X, and I have similar problems with Pow. As Docker relies on osx native virtualization, I really think the problem is elsewhere.

Yurmusp commented 6 years ago

I have similar problem on Sierra. It seems it happens when I interrupt program that runs as docker by ^C. It seems docker does not close something correctly in this case and pow breaks. None of recipes here worked for me to fix it. Thing that works for me is to unload and load pow again with these commands:

    launchctl unload ~/Library/LaunchAgents/cx.pow.powd.plist
    launchctl load   ~/Library/LaunchAgents/cx.pow.powd.plist