Docker port does not listen

  docker, question

Environment: windows7
Gitlab installed with doc

$ docker ps -al
 CONTAINER ID        IMAGE                     COMMAND             CREATED             STATUS                    PORTS                                                            NAMES
 b5e7d97dea17        gitlab/gitlab-ce:latest   "/assets/wrapper"   18 minutes ago      Up 10 minutes (healthy)>443/tcp,>22/tcp,>80/tcp   gitlab

Look, the output commands are normal, but why can’t you telnet to the 800(220) port locally?

I found the reason, because I used docker machine to create it, so I am currently a machine, not a physical machine for containers, and can pass through
docker-machine ssh
To docker’s host machine, you can see that the port is in listening state.
For docker-machine commands, please refer to …