ActiveMQ within Wildfly on a Docker container gives: Invalid “host” value “” detected

I have Wildfly running in a Docker container.
Within Wildfly the messaging-activemq subsystem is active.
The subsystem and extension defaults are taken from the standalone-full.xml file.

After starting wildfly, following output is displayed

  • How to map subdomains to multiple docker containers (as web servers) hosted using Elastic Bean Stack on AWS
  • Docker run command from git repo?
  • LXC implementation with Docker
  • Guestbook example not working. Unable to connect to MASTER
  • Unable to start Elastic Beanstalk MultiContainer instance
  • Multi command with docker in a script
  • [org.apache.activemq.artemis.jms.server] (ServerService Thread Pool -- 64)
    AMQ121005: Invalid "host" value "" detected for "http-connector" connector.
    Switching to "eeb79399d447".
    If this new address is incorrect please manually configure the connector to use the proper one.

    The eeb79399d447 is the docker container id.
    It’s also impossible to connect to jms from my java client. While connecting it gives the following error.

    AMQ214016: Failed to create netty connection: eeb79399d447

    When I start wildfly on my local workstation (outside docker) the problem does not occur and I can connect to jms and send my messages.

  • Docker-swarm >> Cannot connect to the docker engine endpoint
  • DCOKER_CERT_PATH is not supported in docker 1.9
  • Move all Docker stuff?
  • Docker run ignore stderr error messages
  • docker daemon logs are missing
  • Docker for Windows Server 2016 requires update KB3176936
  • One Solution collect form web for “ActiveMQ within Wildfly on a Docker container gives: Invalid “host” value “” detected”

    You need to edit the standalone-full.xml to cope with jms behind NAT and when you run the docker container pass though the ip and port that your jms client can use to connect, which is the ip of the machine running docker in Dockers’ default config

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.