I'm not able to connect JVisualVM to Glassfish running on Docker. I'm using the glassfish nightly image and I'm exposing port 8686. On Startup Glassfish is logging the following:
JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://55bbdd404578:8686/jndi/rmi://55bbdd404578:8686/jmxrmi
The IP of my docker host is 192.168.99.100 and I can connect via telnet on port 8686.
The Service URL I'm using is service:jmx:rmi://192.168.99.100:8686/jndi/rmi://192.168.99.100:8686/jmxrmi
and I'm passing the security credentials but can't connect. Am I missing something?