Docker Tutorial 2: Develop .net core programs under windows and put them in docker to run Linux

1. Be sure to add ->docker support to the project before generating a docker image each time, select linux
2. A dockerfile will be generated
3. The dockerfile will be automatically generated
insert image description here

But if you build a mirror image in this folder, there will be strange problems,
so we have to change the directory of the solution to perform this operation
and copy the DockerFile to the root directory
insert image description here

insert image description here

Then run the build command so that the docker image can be generated

Guess you like

Origin blog.csdn.net/weixin_38083655/article/details/130029205