I think I found the problem but don't know how to fix it.
in /html/index.html, there one line "KDBCONNECT.init(MYKDBSERVER, MYKDBPORT);
MYKDBSERVER was set to some non-ip id like "d6010b912e2b" if I run it from docker. it seems using the ipa function from html.q to get this. but I'm not sure what was the problem. It could be a linux package not installed or a network setting needed to be changed in docker.
A not so clean work-around. I manually changed MYKDBSERVER to the hosting machine's IP address in index.html.
Thanks
JQ