When trying to run docker build I get the following error:
encountered an error during CreateProcess: failure in a Windows system call: The virtual machine or container exited unexpectedly. (0xc0370106)
Installed Server 2019, latest updates, docker, enabled hyper-v etc.
Tested with Ubuntu image:
In VS2019, created a new Console App (.net core 3.0). Added docker support, created dockerfile:
FROM mcr.microsoft.com/dotnet/core/runtime:3.0-buster-slim AS base
WORKDIR /app
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build
WORKDIR /src
COPY ["ConsoleApp1/ConsoleApp1.csproj", ""]
RUN dotnet restore "./ConsoleApp1.csproj"
COPY . .
WORKDIR "/src/."
RUN dotnet build "ConsoleApp1.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "ConsoleApp1.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "ConsoleApp1.dll"]
Output error:
What am i doing wrong? (When I run this on my local pc with Docker For Windows installed it works just fine)
EDIT:
I was able to figure out that this is a generic message and the real issue that Docker can not reach out (not even able to do RUN ping 8.8.8.8) I get
Destination unreachable
Then I stumbled on this: Docker could not find plugin bridge in v1 plugin registry: plugin not found
When I switched back to Windows Containers I was able to PING, when switched back to Linux I get an error. Can anyone help with how to set up Networking so that Docker is able to do a PING when Linux containers are configured on Server 2019?
User contributions licensed under CC BY-SA 3.0