Skip to content

Commit

Permalink
Build for Windows 10 ver 20H2
Browse files Browse the repository at this point in the history
Fix DNS issue in Windows Container by adding the following --network switch:
--network "Default Switch"

docker/for-win#6453 (comment)

docker build --network "Default Switch" -t willh/mssql-server-windows-developer:20H2 .
  • Loading branch information
doggy8088 committed Apr 12, 2021
1 parent 5ca0cef commit 4620201
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions windows/mssql-server-windows-developer/dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/windows/servercore:1909
FROM mcr.microsoft.com/windows/servercore:20H2

LABEL maintainer "Perry Skountrianos"

Expand All @@ -17,8 +17,6 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref
COPY start.ps1 /
WORKDIR /

RUN Get-DnsClientServerAddress
RUN Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses 8.8.8.8
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 ; \
Expand Down

0 comments on commit 4620201

Please sign in to comment.