Run docker image on Server 2019 Linux container

0

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: enter image description here

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:

enter image description here

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?

c#
docker
.net-core
dockerfile
windows-server-2019
asked on Stack Overflow Oct 14, 2019 by ShaneKm • edited Oct 15, 2019 by ShaneKm

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0