Launch some basic Docker WildFly container and expose admin port.
```
docker run --env "WILDFLY_PASSWORD=something" --publish "9990:9990" bitnami/wildfly
```
Connecting to admin interface from inside the container works just fine.
```
$ /opt/bitnami/wildfly/bin/jboss-cli.sh --connect
[standalone@localhost:9990 /]
```
I checked that the port is listening on host.
```
```
But connecting from host never works.
```
jboss-cli.bat --connect
Failed to connect to the controller: The controller is not available at localhost:9990: java.net.ConnectException: WFLYPRT0053: Could not connect to remote+
http://localhost:9990. The connection failed: WFLYPRT0053: Could not connect to remote+
http://localhost:9990. The connection failed: XNIO000812: Connection closed unexpectedly
```
I tried to enable/disable admin management user. Set its password. Using `--user=adming --password=password` authentication. Nothing works. Any clue?
Thank you.
Tim.