Can't reach ActiveMQ Port on Docker from my host

I have a docker Image base on Tomcat 7. My web application start a instance of ActiveMQ.
To build the container I add the following configuration
docker run …. -p 61616:61616 …

I can see the configuration on Docker Inspect command:

  • Get docker-compose.yml file location from running container?
  • How to force reading docker-compose.override.yml file all the time?
  • Nginx as Reverse Proxy for Docker VHosts
  • Docker Django migrate command Type Error [closed]
  • fork/exec ./debug: operation not permitted
  • How to pass the Docker CLI Arguments when starting a container using Kubernetes
  •         "Ports": {
                "5005/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "8091"
                    }
                ],
                "61616/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "61616"
                    }
                ],
                "8080/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "8090"
                    }
                ]
            },
    

    Inside the container if I run:

    telnet localhost 61616

    i can connect to ActiveMQ instance:

    Trying ::1...
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    â–’ActiveMQTcpNoDelayEnabledSizePrefixDisabled    CacheSizeStackTraceEnabled
                                                                              CacheEnabledTightEncodingEnabledMaxInactivityDurationu0 MaxInactivityDurationInitalDelay'
    

    From my host I can’t:

    Trying ::1...
    Connected to localhost.
    Escape character is '^]'.
    Connection closed by foreign host.
    

    I look for the port with netstat and is avaliable:

    netstat -nao

    tcp6       0      0 :::61616                :::*                    LISTEN      26503/docker-proxy   off (0.00/0/0)    
    tcp6       0      0 :::8090                 :::*                    LISTEN      26511/docker-proxy   off (0.00/0/0)
    tcp6       0      0 :::8091                 :::*                    LISTEN      26519/docker-proxy   off (0.00/0/0)
    

    If I try to telnet to the other port, I can connect.
    What I’m missing?

  • The docker compose will remain legacy volumes and couldn't now clear them
  • Docker not hosting anything on the port it says it is, what's going on?
  • cant connect to postgres with GDAL ogr2ogr remotely
  • Apache HTTP ProxyPass inside Docker container linked to other containers: Wrong remote IP interpreted by linked container
  • How to install gulp on a docker with docker-compose
  • How to run script file(.sh file) inside Dockerfile? [closed]
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.