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

  • Chaning tcp_keepalive_* inside a docker container
  • Restarting docker engine and keeping containers running
  • Docker environment variable security
  • iptables rules break communication between Docker containers
  • Docker-compose with Django: 'ascii' codec can't decode byte 0xcd in position 7: ordinal not in range(128)
  • Run Omnet++ inside docker with x11 forwarding on windows. SSH not working
  • [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.

  • Why do there exist “-i” and “-t” options for the “docker exec” command?
  • Using docker during build of Dockerfile
  • Why Can I not resolve and other hosts behind proxy from within Vagrant VM
  • Docker MySQL exits after docker-compose up
  • where files are created in docker run? local machine or docker image
  • How can I run Win32OLE calls from ubuntu?
  • 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.