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

cannot resolve go.microsoft.com #2

Closed
Juphex opened this issue Sep 23, 2019 · 5 comments
Closed

cannot resolve go.microsoft.com #2

Juphex opened this issue Sep 23, 2019 · 5 comments

Comments

@Juphex
Copy link

Juphex commented Sep 23, 2019

`Step 8/11 : RUN Invoke-WebRequest -Uri $env:box -OutFile SQL.box ; Invoke-WebRequest -Uri $env:exe -OutFile
SQL.exe ; Start-Process -Wait -FilePath .\SQL.exe -ArgumentList /qs, /x:setup ; .\setup\setup.exe /q /ACTION=Install /INSTANCENAME=MSSQLSERVER /FEATURES=SQLEngine /UPDATEENABLED=0 /SQLSVCACCOUNT='NT AUTHORITY\NETWORK SERVICE' /SQLSYSADMINACCOUNTS='BUILTIN\ADMINISTRATORS' /TCPENABLED=1 /NPENABLED=0 /IACCEPTSQLSERVERLICENSETERMS ;
Remove-Item -Recurse -Force SQL.exe, SQL.box, setup
---> Running in bcf508e67888
Invoke-WebRequest : The remote name could not be resolved: 'go.microsoft.com'
At line:1 char:76

  • ... lyContinue'; Invoke-WebRequest -Uri $env:box -OutFile SQL.box ; Invok ...
  •              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:Htt
      pWebRequest) [Invoke-WebRequest], WebException
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShe
      ll.Commands.InvokeWebRequestCommand`
@pulla2908
Copy link
Owner

sorry for late response. do you still get the error?

@pulla2908
Copy link
Owner

pulla2908 commented Apr 17, 2020

@Juphex I was able to reproduce. It seams to me it is about the host dns settings. while you build the image the dns in use can't resolve names.

There is an issue which describes this case, see here.

You could try to add following parameter when building the image:
--network "Default Switch"

Like this:
docker build -t mssql-server-windows-developer-fti . --network "Default Switch"

Please tell me if that helps.

@kkbruce
Copy link

kkbruce commented Apr 26, 2020

@pulla2908
I have docker build problem, and try --network "Default Switch" is work for me.

@Juphex
Copy link
Author

Juphex commented Apr 26, 2020

yes, --network "Default Switch" works.
However, the container is then available in the network, so keep an eye out.

@Juphex Juphex closed this as completed Apr 26, 2020
@pulla2908
Copy link
Owner

@kkbruce @Juphex thx for the feedback. I will document this in the readme

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

3 participants