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

use standardized host.docker.internal for docker host #2967

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hastinbe
Copy link
Contributor

@hastinbe hastinbe commented May 7, 2021

Description

Containers are making DNS requests to host.docker.internal, but it does not resolve because laradock uses dockerhost instead.

Fixes #2966

Motivation and Context

Found this problem while debugging why unit tests ran slow when offline. The DNS requests were timing out because there is no local entry for host.docker.internal.

References:

Types of Changes

  • Bug fix (non-breaking change which fixes an issue).
  • [] New feature (non-breaking change which adds functionality).
  • [] Breaking change (fix or feature that would cause existing functionality to not work as expected).

Definition of Done Checklist:

  • I've read the Contribution Guide.
  • [] I've updated the documentation. (refer to this for how to do so).
  • I enjoyed my time contributing and making developer's life easier :)

Fixes laradock#2966 where current versions of laradock containers are already making DNS requests
to host.docker.internal which resolving NXDOMAIN when it should resolve.

See docker/for-linux#264
    moby/moby#40007
    https://docs.docker.com/engine/release-notes/#networking-2 for
    docker-engine 20.10

Signed-off-by: Beau Hastings <beau@saweet.net>
@Mahmoudz Mahmoudz force-pushed the master branch 2 times, most recently from f031ded to 5cf7449 Compare May 25, 2021 18:33
@Mahmoudz Mahmoudz force-pushed the master branch 8 times, most recently from 7a26bb5 to 471e699 Compare July 31, 2021 13:42
@Mahmoudz Mahmoudz force-pushed the master branch 19 times, most recently from 3b4c8ee to c06755d Compare August 13, 2021 15:36
@Mahmoudz Mahmoudz force-pushed the master branch 8 times, most recently from 5503249 to 9707cb4 Compare August 13, 2021 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support host.docker.internal instead of dockerhost
1 participant