Docker machine --driver amazonec2 . Wildfly

Hi team
We created a Docker-machine using “–driver amazonec2” then we activated the machine with, eval “$(docker-machine env dev)” and we ware able to run “docker run -it -p 8080:8080 jboss/wildfly:8.1.0.Final” in our new ES2 Docker-machine successfully.

to test if Wildfly is running we connect to aws:Public IP:8080 , e.g http://127.34.34.34:8080 and we were no able to see the wildfly home page

Are we missing something ?

thanks
Francisco

Hi,

This doesn’t look like the IP you should be trying to hit. Get the Public IP (Elastic IP if you have) associated with your instance and try to hit on that IP. Also make sure that you open port 8080 in your security groups.

Regards

Hi @ranjandas thanks a lot for your reply

I added the below configuration to the Security Group
Type Protocol Port Range Source
HTTP TCP 80 0.0.0.0/0

And I do not have a “Elastic IP” and only have "Public IP"
Still did not work, I have Wildfly continer working but I cannot no find what I am missing to hit it on my browser

Best
Francisco

Hi,

In docker run you have used the port 8080 so you have to open port 8080 in security group. Where as you have opened port 80.

Can you please fix that and let me know if it works? You can try with the public IP you have.

Regards

Hi @ranjandas thanks, We opened the 8080 and now is working :smile:

Best
Francisco