Open RLashofRegas opened 2 years ago
Two more notes that may be relevant:
$ curl api.nuget.org
works from the WSL bash shell (i.e. not inside the dev container.same for me. Any news? Thanks
Facing same issue with windows container, when trying to ping from within windows container it is not able to resolve dns
**note above image is running command from container in -it mode
Same for me, also. Any news?
@Livius90 , finally discovered there was a certificate issue, since I was behind firewall and it was blocking my requests. How this issue was resolved was by using a cert in container and it then used this cert to connect/download nugets and finally it was able to resolve this.
Steps to Reproduce:
mkdir test
code test
curl api.nuget.org
response is:Additional Notes:
I tried the same steps as above but with the "Docker From Docker" container definition (i.e. no compose) and I did not get the same error
This may be related, but seems slightly different from the issue I opened earlier today: #1470
when comparing between the Docker From Docker vs the Docker From Docker Compose containers,
/etc/hosts
,/etc/nsswitch.conf
, and/etc/resolv.conf
all matchI tested that
curl google.com
works:I installed
host
anddnsutils
, results are as follows:$ host -v api.nuget.org
>$ nslookup -debug api.nuget.org
>