-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Info about accessing the network under WSL2 #114
Comments
Thanks for the suggestion, I am very interested in the reason why it did not work with the default virtual network that is created by docker. I would presume this is a docker configuration problem, rather than something related to this repo. Do you have some sort of proxy setup? Or maybe using a different / private DNS setup that did not allow the containers to reach the internet? BTW. I am also running inside WSL2 and I did not face this problem |
Thank you for getting back.
I'm not sure what it means. But I believe my install isn't completely standard for some reason. I you want me to run commands to investigate more let me know. For me it's working great now. So thank you for your work. 👏 |
Ran the same commands on my side
Which I would guess is similar to yours and is correct, container is resolving through docker and wsl is resolving through windows DNS server. TBH this seems like a wsl kink, some users reported a restart is enough, others say its ip collision in the docker / host bridge, also here, others say you need to enable the I will add this info to the wiki, is there is simpler solution than adding it manually to each service? |
Thanks for the tips, I will look into your leads (restarting docker didn't help). Another option is to use a config file and launch the services with the |
I updated the wiki with a small description and a link back to this issue. |
build: I just tried this and when i try to run the command again i am then met with |
ok so i fixed this issue using another method by adding dns to the docker desktop engine and setting a bip as well, but now I'm experiencing the bash error |
The context and network items must be indented as shown in the top comment.
|
This is not really a bug report, but more a suggestion.
I encountered a network issue under WSL2 which I fixed by modifying the docker-compose file.
On WSL2, when initially running
docker compose --profile auto up --build
I got a network access problem:The fix was to add (in the docker-compose file) a
network
key to each service which has abuild
section.As an example (for the
download
service) :Before change:
After change:
This fix could either be documented in the wiki or implemented in the docker-compose YAML file. For the latter, the
host
key could be left out to avoid any breaking changes. This way it would be easier for users to add thenetwork
key in case the problem occurs.The text was updated successfully, but these errors were encountered: