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

Update running-gatewayd.md to handle Docker host connection for different setups #56

Conversation

sinadarbouy
Copy link
Collaborator

Description

This PR addresses the issue of setting the Docker host variable when running on Docker Desktop. Due to the networking implementation in Docker Desktop, the docker0 bridge interface is not present on the host. Instead, we can use the DNS name (https://docs.docker.com/desktop/networking/#use-cases-and-workarounds)

Changes Made

  • Added instructions for setting the DOCKER_HOST variable to host.docker.internal when using Docker Desktop.
  • Removed the extra definition of DOCKER_HOST in step 5 because it is already defined in step 1.

Context

When running on Docker Desktop, the absence of the docker0 bridge interface on the host can lead to confusion regarding how to correctly set up the Docker host variable.

Copy link

vercel bot commented May 31, 2024

@sinadarbouy is attempting to deploy a commit to the GatewayD Labs Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented May 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 31, 2024 8:19pm

Copy link
Member

@mostafa mostafa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sinadarbouy Thanks for your contribution!

I made a comment to simplify your change.

Consider running bash generate_last_modified_data.sh and committing the update timestamps in all files.

- Added instructions for setting DOCKER_HOST variable to host.docker.internal when using Docker Desktop.
- Removed unnecessary defining

Signed-off-by: sinadarbouy <[email protected]>
@sinadarbouy sinadarbouy force-pushed the fix/fix-docker-host-variable-docker-desktop branch from 362c5df to 9009045 Compare May 31, 2024 19:13
@mostafa mostafa merged commit 7f454e0 into gatewayd-io:main May 31, 2024
4 checks passed
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.

2 participants