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

Updating to Docker Desktop 2.2.0.0 breaks Docksal #1268

Closed
ygerasimov opened this issue Jan 22, 2020 · 33 comments
Closed

Updating to Docker Desktop 2.2.0.0 breaks Docksal #1268

ygerasimov opened this issue Jan 22, 2020 · 33 comments
Assignees
Labels
Projects

Comments

@ygerasimov
Copy link

I have updated my Docker Desktop to 2.2.0 and can't start docksal anymore. When I run fin up I am getting an error

Resetting Docksal system services...
 * proxy
docker: Error response from daemon: driver failed programming external connectivity on endpoint docksal-vhost-proxy (83b3ef7bafa2d27d0af784b64c635e1fff31b26803dad7bca9a4b20eb98457fb): Error starting userland proxy: listen tcp 192.168.64.100:8443: bind: cannot assign requested address.
 ERROR:  Failed starting the proxy service.

I did try to change ports but didn't help. My docksal version is

ygerasimov$ fin --version
fin version: 1.93.0
@achekulaev
Copy link
Member

achekulaev commented Jan 22, 2020

Right now the solution is to downgrade Docker to 2.1.x

@achekulaev achekulaev added this to To do in 1.14.0 via automation Jan 22, 2020
@lmakarov
Copy link
Member

lmakarov commented Jan 22, 2020

Here are the direct links to the latest 2.1.x version (2.1.0.5):
Mac: https://download.docker.com/mac/stable/40693/Docker.dmg
Windows: https://download.docker.com/win/stable/40693/Docker%20Desktop%20Installer.exe

@lmakarov
Copy link
Member

lmakarov commented Jan 22, 2020

Upstream issues:

@kenrbnsn
Copy link

One gets the same error with the Windows 10 version of Docker 2.2.0.0

@tekNorah
Copy link

I am also experiencing the same issue (Mac).

@lmakarov lmakarov changed the title docksal-vhost-proxy error after updating docker desktop to 2.2.0 Updating to Docker Desktop to 2.2.0.0 breaks Docksal Jan 24, 2020
@lmakarov lmakarov changed the title Updating to Docker Desktop to 2.2.0.0 breaks Docksal Updating to Docker Desktop 2.2.0.0 breaks Docksal Jan 24, 2020
@crud42
Copy link

crud42 commented Jan 27, 2020

I can confirm this bug when upgrading to Docker Desktop 2.2.0.0 on macOS resulting in:

Error starting userland proxy: listen tcp 192.168.64.100:443: bind: cannot assign requested address.

Going back to Docker Desktop Version 2.1.0.5 resolves the issue for now.

@rabithk
Copy link

rabithk commented Jan 28, 2020

+1

@cmodern
Copy link

cmodern commented Jan 29, 2020

+1 2

@uniquename
Copy link

+1

@akosglue
Copy link

akosglue commented Feb 4, 2020

+1 4

@achekulaev
Copy link
Member

achekulaev commented Feb 6, 2020

I see no point of adding "+1" comments here. It is an upstream issue. We cannot fix it.

I urge you to go and leave your comments there docker/for-mac#4209

@nerfchicken
Copy link

While it may be an upstream issue, I don't think it impacts only docker/for-mac. The same issue impacted all of our Windows users when they upgraded to 2.2.0

@tekNorah
Copy link

tekNorah commented Feb 6, 2020

While it may be an upstream issue, I don't think it impacts only docker/for-mac. The same issue impacted all of our Windows users when they upgraded to 2.2.0

You are correct, it is also an issue for windows. See: docker/for-win#5546

@danshumaker
Copy link
Contributor

danshumaker commented Feb 11, 2020

It also seems strange to upvote a "solution" that is a downgrade. It's ok that we can all downgrade to get around the issue, but it should not be considered a good solution to downgrade. If anything a downgrade "solution" should get a thumbs down. ?? anyway no big deal about emoji's/thumbs/votes.

I just confirmed that this also happens for docker for mac version 2.2.0.3 .and fin version 1.93.0

cross-ref-post: https://forums.docker.com/t/dockerdesktop-on-mac-2-2-0-0-not-able-to-bind-with-port-443/87591

@lmakarov
Copy link
Member

It also seems strange to upvote a "solution" that is a downgrade. It's ok that we can all downgrade to get around the issue, but it should not be considered a good solution to downgrade. If anything a downgrade "solution" should get a thumbs down. ??

@danshumaker Downgrading is a temporary workaround. The actual issue is upstream in Docker for Mac/Win. Chiming in there will make the most sense.

@phox4ever
Copy link

phox4ever commented Feb 11, 2020

@lmakarov Isn't Docksal using the vEthernet (DockerNAT) interface? It has been removed: docker/for-win#5538

@lmakarov
Copy link
Member

Isn't Docksal using the vEthernet (DockerNAT) interface? It has been removed: docker/for-win#5538

@phox4ever oh wow... That's an unfortunate change and will definitely require refactoring in Docksal.
At the same time, it is a different (and additional) compatibility issue with the new Docker Desktop for Windows versions.

That's for bringing this up. I submitted a separate issue here: #1276

@hugronaphor
Copy link

Would be nice to mention a specific supported version on https://docs.docksal.io/getting-started/setup/#install-macos as it took me a while to get to this discussion.

@kenrbnsn
Copy link

kenrbnsn commented Apr 2, 2020

Has this been resolved yet? Upgrading to the latest Docker Desktop on Windows still breaks docksal.

image

@lpeabody
Copy link
Sponsor Contributor

lpeabody commented Apr 2, 2020

@kenrbnsn it's an upstream issue with Docker Desktop. In the mac issue queue they said it's fixed in an upcoming edge release docker/for-mac#4209 (comment). Don't know if there is a corresponding release for Windows, however.

@lmakarov
Copy link
Member

lmakarov commented Apr 2, 2020

The upstream edge releases with the fix are now available for download - v2.2.3.0 (edge build v43965).

Mac: https://download.docker.com/mac/edge/43965/Docker.dmg
Windows: https://download.docker.com/win/edge/43965/Docker%20Desktop%20Installer.exe

Please try and report your experience.
I would still recommend waiting for a stable Docker Desktop release for most users.

@jacobsaw
Copy link

jacobsaw commented Apr 2, 2020

Confirmed that this issue is resolved after upgrading to edge 2.2.3.0.

@kenrbnsn
Copy link

kenrbnsn commented Apr 6, 2020

Still not working for me.

Docker:
image

Docksal:
$ fin version
fin version: 1.93.0
$ fin start
ALERT: Some Docksal services were not running
Restarting Docksal system services...
Configuring network settings...
Resetting Docksal system services...

  • proxy
    docker: Error response from daemon: Ports are not available: listen tcp 192.168.64.100:443: bind: The requested address is not valid in its context.
    ERROR: Failed starting the proxy service.

@lmakarov
Copy link
Member

lmakarov commented Apr 7, 2020

Still not working for me.

@kenrbnsn you are on Windows, correct?

@kenrbnsn
Copy link

kenrbnsn commented Apr 9, 2020

@lmakarov Yes. Windows 10
image

@mathias-heilmann
Copy link

mathias-heilmann commented Apr 16, 2020

On my mac with catalina (10.15.4) it works with edge 2.2.3.0 , but I have to run always "fin system reset" after "fin project start", because the dns to "whatever.docksal" is not working.

@moacode
Copy link

moacode commented May 11, 2020

Latest stable version of Docker for Mac (2.3.0.2) is working.

@lmakarov
Copy link
Member

The latest stable Docker Desktop versions (released today) should address this regression:

Fixed an issue where a container port could not be exposed on a specific host IP. See docker/for-mac#4209.

Fixed an issue where a container port could not be exposed on a specific host IP. See docker/for-win#5546.

@mike-potter
Copy link

Just tried Docker for Mac 2.3.0.2 and there still seems to be a problem. I just get "The connection was reset" when trying to visit my http://project.docksal site. I can "ping" the site, but doing a curl http://www.project.docksal returns no data.

As mentioned in the comment above, doing a "fin system reset" after doing the "fin project start" fixed the problem.

Looks like maybe the initial "fin start" doesn't work properly after doing the Docker Desktop update. But once you do a "fin system reset" (which looks like it is doing the same stuff as "fin start") then everything starts working.

@mike-potter
Copy link

Also confirming that if you restart Docker Desktop and then do a fin start, the project site no longer responds. Still have to do a fin system reset to get the site to work again. Once that is done, doing fin stop and fin start seem to work fine.

So you just need to use fin system reset after rebooting or restarting Docker Desktop. Hopefully this is something that can be fixed on the Docksal side. The bug that prevented Docker Desktop 2.2 from working DOES seem to be resolved. Needing to use fin system reset is a new issue.

@mike-potter
Copy link

Opened new issue #1342 to track this.

@crud42
Copy link

crud42 commented May 13, 2020

Can confirm that things are working, too. See comment in #1342 if that helps to clarify.
Not sure if the need of using

fin system reset

is an issue at all ? But i cannot judge that, just interested.

@lmakarov
Copy link
Member

Should be fixed in v1.13.3 (just released).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
1.13.3
  
Done
Development

No branches or pull requests