How to map port of a docker container with flask app in localhost a windows network?

A windows system on hyperv, Docker creates a Linux system and creates a network DockerNAT. I start the container, and probressive port 5000 outside.
Where the settings are stored to create this virtual machine?Because when you start, it automatically put dockernat and not external.
And can I configure the network so that the containers were accessible via localhost?

Thanks in advance!
Docker latest 17.09.1

And it is not entirely clear where it falls. I run the command from the examples of the documentation of Docker
docker run-d-p 8876:80 --name nginx webserver
And in the browser by entering localhost:8876 I can access the welcome message from nginx
Launching the container from the image:
FROM python:latest

ENV PROJECT = /fileuploader

WORKDIR /fileuploader

ADD . /fileuploader

RUN pip install --trusted-host pypi.python.org -r requirements.txt

EXPOSE 5000

VOLUME ${PROJECT}

ENV FLASK_APP index.py

CMD ["flask","run"]

in pycharm I get the log that the service is running on 127.0.0.1:5000 but in powershell I see that the container is running and forwarding a port 8877
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3acd9709e8a4 45b9d430ff43 "flask run" 34 seconds ago Up 32 seconds 0.0.0.0:8877->5000/tcp pyfileuplo
3b7bdf132ff2 nginx "nginx -g 'daemon ..." 4 minutes ago Up 4 minutes 0.0.0.0:8876->80/tcp webserver

But access to the browser can not get.What can be the reason?
And the browser says connection reset. When you run the command curl from the container, I get a working answer,ie he flask in the container is running.
June 10th 19 at 14:48
1 answer
June 10th 19 at 14:50
Solution
The problem was not in the Docker, and the fact that the flask was run on ip 127.0.0.1 and not 0.0.0.0
type https://dev-ops-notes.ru/docker/%D1%83%D0%BF%D0%B0...
app.run(debug=True,host='0.0.0.0') - Adolfo.Hettinger commented on June 10th 19 at 14:53
there's also the problem was in the pycharm settings. I have to start standing team flask run, and the condition __name__ == __main__ was passed. )But Yes,those are the settings lacked - sim_Schaden49 commented on June 10th 19 at 14:56

Find more questions by tags DockerFlaskWindowsPython