Details

    • Story Points:
      5
    • Steps to Reproduce:
      Hide

      I created a simple example to illustrate the problem here: https://github.com/attiand/wildfly-swarm-docker-management

      The example is basically a copy of wildfly-swarm-examples/management-console and a Dockerfile.

      Show
      I created a simple example to illustrate the problem here: https://github.com/attiand/wildfly-swarm-docker-management The example is basically a copy of wildfly-swarm-examples/management-console and a Dockerfile.

      Description

      I try to run the Management Console inside a Docker container but have little luck.

      According to https://therichwebexperience.com/blog/arun_gupta/2015/01/wildfly_admin_console_in_a_docker_image_tech_tip_66_ the management bind address should be set to 0.0.0.0 to listen on every available network interface.

      According to https://github.com/wildfly-swarm/wildfly-swarm-reference-guide/blob/master/network.adoc the property swarm.management.bind.address exist but seems to have no effect.

      I tried to apply the following fix on (which I found on branch SWARM-1134): fractions/wildfly/management/src/main/java/org/wildfly/swarm/management/runtime/ManagementInterfaceProducer.java

      -        return new Interface("management", "127.0.0.1");
      +        return new Interface("management", SwarmProperties.propertyVar(ManagementProperties.MANAGEMENT_BIND_ADDRESS, "127.0.0.1"));
      

      Now I got the following trace during startup
      WFLYSRV0060: Http management interface listening on http://0.0.0.0:9990/management

      and I'm able to connect the management console.

      If this is not a bug it would be great if an example how to accomplish this could be added to wildfly-swarm-examples

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                andermaj Mattias Andersson
                Reporter:
                andermaj Mattias Andersson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: