title: Net Core on Docker for Windows SQL Server not working
body: <p>I'm creating a new empty ASP.NET Core 2.2 with Docker support enabled (Docker for Windows).</p>
  
  <p>When I run it on Docker, it does not connect to SQL Server. I was expecting that the nanoserver had a SQL Server in it. Am I wrong?
  How should I connect this instance to an SQL Server?</p>
  
  <p>I was trying to avoid creating a second Docker instance for the SQL Server. Is this the only way to achieve what I'm looking for?</p>
  
  <p>Here's the auto generated Dockerfile:</p>
  
  <pre><code>FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1803 AS base
  WORKDIR /app
  EXPOSE 80
  EXPOSE 443
  
  FROM microsoft/dotnet:2.1-sdk-nanoserver-1803 AS build
  WORKDIR /src
  COPY ["DockerTest2/DockerTest2.csproj", "DockerTest2/"]
  RUN dotnet restore "DockerTest2/DockerTest2.csproj"
  COPY . .
  WORKDIR "/src/DockerTest2"
  RUN dotnet build "DockerTest2.csproj" -c Release -o /app
  
  FROM build AS publish
  RUN dotnet publish "DockerTest2.csproj" -c Release -o /app
  
  FROM base AS final
  WORKDIR /app
  COPY --from=publish /app .
  ENTRYPOINT ["dotnet", "DockerTest2.dll"]
  </code></pre>