N
N
Nikita2021-12-12 23:23:46
Docker
Nikita, 2021-12-12 23:23:46

Basic .net core + docker questions?

Tell me, I use docker under win (for development), I want to run my console in .net core via docker.

With

FROM mcr.microsoft.com/dotnet/runtime:3.1

there are no problems - the image is downloaded and the code is run.

But when trying to do
FROM shimat/ubuntu18-dotnetcore3.1-opencv4.5.0

(this is an image with ubuntu and opencv + dotetcore)
writes
ERROR [internal] load metadata for docker.io/shimat/ubuntu18-dotnetcore3.1-opencv4.5.0:latest
failed to solve with frontend dockerfile.v0: failed to create LLB definition: docker.io/shimat/ubuntu18-dotnetcore3.1-opencv4.5.0:latest: not found

Although such an image exists.
Do I understand correctly that for some reason I cannot run a similar image under win? If yes, then why - after all, as I understand it, ubunta rolls inside and my app rolls out already inside it, how does the fact that I wound a docker build / run with windows affect it?

And the second question - what is sewn up in the same
FROM mcr.microsoft.com/dotnet/runtime:3.1
? some kind of axis with the necessary libs? Or is it a container that will run under Windows if I run it from Windows?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-12-13
@vabka

how does the fact that I run a docker build / run with windows affect here?

In theory, it shouldn't. Docker on Windows raises containers in a virtual machine (Hyper-V, Virtual box, or wsl2)
And the second question - what is sewn up in the same

You can see the source of the dockerfile - They are open.
61b6637aa8c2d854525753.png
https://github.com/dotnet/dotnet-docker/blob/aa763...
Although such an image exists.

Actually, no :)
https://github.com/shimat/opencvsharp/tree/master/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question