Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker restarts whenever I change my internet connection #1789

Closed
dharzheim opened this issue Jun 29, 2017 · 13 comments
Closed

Docker restarts whenever I change my internet connection #1789

dharzheim opened this issue Jun 29, 2017 · 13 comments

Comments

@dharzheim
Copy link

dharzheim commented Jun 29, 2017

This only started happening with the latest update Version 17.06.0-ce-mac18 (18433)

Expected behavior

  • Docker doesn't restart

Actual behavior

  • Whenever I change my internet connection (Switch WiFi Network, turn off WiFi, switch to VPN) Docker restarts

Information

20170629-113512.tar.gz

Steps to reproduce the behavior

  1. ...
  2. ...
@abellion
Copy link

abellion commented Jun 29, 2017

Same here !

Diagnostic ID : 601E7FA8-C7C6-401D-9A28-57FB894FDB99

@shillem
Copy link

shillem commented Jun 29, 2017

I'm experiencing it too. This issue might me connected to #1772

@tgree
Copy link

tgree commented Jun 30, 2017

I have this too. It's easy to reproduce with an Ethernet cable... just unplug it and the whale icon shows docker restarting. In the Preferences panel it looks like I have "Experimental features" checked even though I'm sure I never had it checked before updating to 17.06.0-ce-mac18 so I don't know if that's related at all.

With the last stable version changing networks or sleeping/waking my laptop caused no issues at all for docker.


Just replying to myself: I disabled the Experimental Features, restarted docker, unplugged my network cable and docker still restarted, so it's probably unrelated to that.

@nutsoriginal
Copy link

The same issue. Docker restarts when I close internet connection.
Version 17.06.0-ce-mac18 (18433)
Channel: stable
d9b66511e0

@kvahuja
Copy link

kvahuja commented Jul 1, 2017

can we get a fix on priority or how do I get to the previous version?

Docker is useless for me now and I am stuck with all my development

@dharzheim
Copy link
Author

Previous versions:
https://gist.github.com/franklinyu/5e0bb9d6c0d873f33c78415dd2ea4138

You can also find the older versions that have been replaced in your Trash.

@timothyallan
Copy link

This sounds like the reason Docker hard exits all my containers whenever I start/quit Charles Proxy. Only just started happening after installing Version 17.06.0-ce-mac18 (18433)

Unexpected API error for dev_webserver-dev_1 (HTTP code 502)
Response body:
Bad response from Docker engine

@naragobear
Copy link

naragobear commented Jul 2, 2017

I too see this issue. And it is rather easily reproducible.

Here is the output for docker version

Client:
 Version:      17.06.0-ce
 API version:  1.30
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:31:53 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      17.06.0-ce
 API version:  1.30 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:51:55 2017
 OS/Arch:      linux/amd64
 Experimental: true

@djs55
Copy link
Contributor

djs55 commented Jul 3, 2017

Thanks for the report and the uploaded diagnostics. The logs have:

Triggering a VM reboot because proxy settings changed from ma
in.proxySettings{http:"", https:"", exclude:"*.local, 169.254/16"} to main.proxySettings{http:"", https:"", exclude:""}

This appears to be the same as #1809

HTTP proxies are configured by modifying the environment variables inside the VM, which requires a VM restart whenever the variables change. In this case perhaps it's unnecessary to reboot when the exclude changes, when there is no actual proxy set.

As a workaround try setting: Whale Menu -> Proxies -> No proxies.

@spaceoi
Copy link

spaceoi commented Jul 4, 2017

Same:
42E0CE8F-B483-490C-B0AC-546DA27CEFA2

@djs55
Copy link
Contributor

djs55 commented Jul 4, 2017

The unnecessary reboot caused by the exclude changing when there is no proxy set has been cherry-picked into the branch for 17.06.1, which should hopefully be released later this week. Thanks for your report!

@djs55
Copy link
Contributor

djs55 commented Jul 17, 2017

The unnecessary reboot fix was released in a patch on the stable branch and the end of last week. The fix is in version:

Version 17.06.0-ce-mac19 (18663)
Channel: stable
c98c1c25e0

I believe this should fix the problem so I'll close this ticket. If you continue to have problems, could you upload fresh diagnostics and let me know?

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests