I was about to post a question in a Docker forum but just as I was going to get a link to the misc/docker
directory it disappeared, and I see that must be from the most recent commit. Here's what I was going to ask:
I was attempting to follow and run a sample application found at this repository. Originally I tried it on my Mac and the docker compose command worked perfectly fine, starting all 3 services. However when trying on my Windows work laptop it’s been an absolute nightmare. I’ve lost hours trying to figure out what’s causing it to fail on Windows, and believe it has to do with user permissions. The .NET Core app's Dockerfile-dev
has a RUN dotnet publish -c Release -o out
step, which works fine when running it directly on the Git Bash command line, but running docker build -f Dockerfile-dev .
in that directory fails with this output:
Step 5/9 : RUN dotnet publish -c Release -o out
---> Running in c20e3f3e8110
Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
/usr/share/dotnet/sdk/3.1.102/NuGet.targets(123,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/app/AspNetCore.sln]
/usr/share/dotnet/sdk/3.1.102/NuGet.targets(123,5): error : The SSL connection could not be established, see inner exception. [/app/AspNetCore.sln]
/usr/share/dotnet/sdk/3.1.102/NuGet.targets(123,5): error : The remote certificate is invalid according to the validation procedure. [/app/AspNetCore.sln]
The command '/bin/sh -c dotnet publish -c Release -o out' returned a non-zero code: 1