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:

  • Installation in Intel System Studio error
  • Docker 1.12-how to run a post deploy script after swarm deploy my service
  • PyCharm docker debugging error
  • Where is the base docker image specified in Play Framework?
  • '/bin/sh -c bash $METEORD_DIR/on_build.sh' returned a non-zero code: 1
  • What are the option to API gateway with docker?
  •         "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?

  • Slapd with back-sql in docker only retrieves attribute mapping for one object class
  • Is there a CentOS equivalent of the official ruby:2.2.0 docker image?
  • Load balance docker swarm
  • dockerized cassandra: java.lang.OutOfMemoryError: Java heap space
  • Docker: Benefit of the “From”-Instructions?
  • Unable to download docker golang image: No command specified
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.