ripe-grass-75099
07/14/2022, 12:34 PMFROM <http://mcr.microsoft.com/dotnet/sdk:6.0-alpine|mcr.microsoft.com/dotnet/sdk:6.0-alpine>
#RUN ping <http://google.com|google.com>
RUN ping <http://api.nuget.org|api.nuget.org>
and the output
C:\temp\docker>docker build .
Sending build context to Docker daemon 2.048kB
Step 1/4 : FROM <http://mcr.microsoft.com/dotnet/sdk:6.0-alpine|mcr.microsoft.com/dotnet/sdk:6.0-alpine>
---> 68f959202edb
Step 2/4 : RUN ping <http://api.nuget.org|api.nuget.org>
---> Running in 190474634dc2
ping: bad address '<http://api.nuget.org|api.nuget.org>'
The command '/bin/sh -c ping <http://api.nuget.org|api.nuget.org>' returned a non-zero code: 1
A curl in the docker build returns this:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Could not resolve host: <http://api.nuget.org|api.nuget.org>
* Closing connection 0
curl: (6) Could not resolve host: <http://api.nuget.org|api.nuget.org>
Really not sure what is going on as other addresses appear to work fine so it shouldn't be a networking issue, but everything suggests it iswitty-jelly-95845
07/14/2022, 12:36 PM