1. The resulting outer root Dockerfile get (ps: generating Dockerfile selected documents linux)
2. Console enter the corresponding folder
3.docker build -t debugbox / api (debugbox / api is to starting the project name) a. (Dot here represents the current directory)
(loading ...... generated image)
4.docker run -d -p 8080: 5000 debugbox / api (debugbox / api is to starting the project name)
(8080 port is exposed to the windows; 5000 is the port project, you need to configure .UseUrls ( "http in the program in : // *: 5000 "))
(Convenience, you can write directly instead of -P -p add port, the system will automatically assign ports, view the port after the completion of docker ps after the operation)
OK 8080 port visit