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:

  • Setting up Docker Postgres inside Python container
  • Docker container not starting (docker start)
  • How to make container wait for other container in Docker Compose
  • my own customizations of boot2docker are not reflected into the iso image
  • add www-data to docker group does not work - docker-in-docker
  • How do I put a docker container in an error state?
  •         "Ports": {
                "5005/tcp": [
                        "HostIp": "",
                        "HostPort": "8091"
                "61616/tcp": [
                        "HostIp": "",
                        "HostPort": "61616"
                "8080/tcp": [
                        "HostIp": "",
                        "HostPort": "8090"

    Inside the container if I run:

    telnet localhost 61616

    i can connect to ActiveMQ instance:

    Trying ::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?

  • Dockerfile build RUN cmd fails but works from interactive
  • Is it possible to start a stopped container from another container
  • Linking multiple docker containers to one container with alias localhost using docker-compose
  • Docker - Gitlab container. SSH git login error
  • Sandbox docker container
  • limit logs amount for docker-compose
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.