Connection to Localhost refused

I am using:

https://docs.docker.com/engine/userguide/containers/usingdocker/

I run:

$ docker run -d -P training/webapp python app.py
415cfd83e5b3f1128e5abc2040e55c032a670bab86d62d59b16dab89b8cd106b
$ docker ps -l
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
415cfd83e5b3 training/webapp “python app.py” 13 seconds ago Up 13 seconds 0.0.0.0:32771->5000/tcp sharp_fermat
$

When I try and open the web app on my machine on the allocated port at localhost I get unreachable

on my machine i see

CONTAINER ID        IMAGE               COMMAND             CREATED              STATUS              PORTS                          NAMES
2a5499bb1bfd        training/webapp     "python app.py"     About a minute ago   Up About a minute   192.168.64.2:32768->5000/tcp   big_leavitt

And opening http://docker.local:32768 works - not sure why different binding shows for your machine/env.

Also if you install Kinematic from the link provided by the Docker Helper - it helps a lot. Kitematic-Mac.zip

@bluemoon22 it is somewhat the expected behavior- 0.0.0.0, in this context, means "all IP addresses on the local machine"
The only IP that properly matches is what @cicorias reported, which is docker.local:32771 in your case