I created an application in the asp.net core and am creating a docker file to create a local image and run it.
FROM microsoft/dotnet:latest
COPY . /app
WORKDIR /app
RUN ["dotnet", "restore"]
RUN ["dotnet", "build"]
EXPOSE 5000/tcp
ENTRYPOINT ["dotnet", "run", "
Then I created my image with the following command
docker build -t jedidocker/first .
Then I created a container with the following command
docker run -t -d -p 5000:5000 jedidocker/first
But when I run the following URL in the host browser
http:
I have ERR_EMPTY_RESPONSE
Is this a network problem? How can I solve it?
PS: My version for Windows is 10.0.10586
source
share