Docker port bindings

docker ps command gives me:


Does it mean that port 40000 is busy and nobody can use given port?
I guess that is the case.

  • How to specify host port range instead of host port in kubernete's pod yaml file?
  • Get docker run command for container
  • docker compose: rebuild of one linked container breaks nginx's upstream
  • Nginx on docker - daemonize and attach to bash [closed]
  • Error connecting to VPN within Docker container
  • passing parameters to app on docker image
  • If so, why command lsof -i :40000 gives me an empty output?

  • MongoDB URL in MeteorD
  • Running an iPython notebook server on an EC2 Ubuntu instance via Docker
  • disable firewalld/iptables in centos7 minimal version
  • How to make a call to Rest-Endpoint which are deployed on Linux machine as a Docker Container
  • Execute mysql command from the host to container running mysql server
  • I want to calculate actual time taken by docker to start , stop a container
  • One Solution collect form web for “Docker port bindings”

    Yes, that does mean that port 40000 on is being forwarded to a docker container. It does not necessarily mean that the container application is listening on port 8888 on all container interfaces ( which is needed to complete that connection.

    Three reasons that I can think of where lsof -i :40000 would give no output:

    1. You didn’t run the lsof command as root
    2. Something has killed the docker-proxy process used to relay this traffic
    3. You ran the lsof command on a different machine than your docker host. Docker is a client/server app, and by setting $DOCKER_HOST you can connect to a remote machine to see the status of a remote host.
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.