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

Need "network_mode: host" when using docker-in-docker feature with compose #3

Open
davetapley opened this issue Jan 3, 2022 · 0 comments

Comments

@davetapley
Copy link

When using this with docker-in-docker,
destinations won't be reachable from containers running in a Codespace
if you are using "dockerComposeFile": "docker-compose.yml" in devcontainer.json.

The workaround is to set network_mode: host in your docker-compose.yml.


A good test is running $ route -n, if you don't see this ⬇️ in the parent container then it won't work.

172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0
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

No branches or pull requests

1 participant