I have another issue related to running in a Docker container. It seems that undertow actually binds to an IP6 address at startup.
I found a closed Issue that @arun-gupta reported, it said to give the java -jar command a -Djboss.bind.address=0.0.0.0. I have also checked the Maven Swarm plugin and RunMojo which default binds to 0.0.0.0. This should be sufficient to make the application it available outside of Docker. Meaning RUN mvn wildfly-swarm:run also should work in the Dockerfile.
Running the java -jar command, it seems like my resources (any of my classes really) never get packaged in the jar-file.
I created a minimal project on Github. https://github.com/thomasandersen77/swarm-docker
I have verified this behavior in both 22.214.171.124.Alpha3 and 126.96.36.199.Alpha4-SNAPSHOT (latest from master branch).
I run Maven 3.3.3 and Java 8. The only way to make it run is from IntelliJ and the main class.
Thank you again for your time!