简体   繁体   中英

Error connecting to docker container

I installed a service on a remote Linux computer using docker. I used the following commands

But when I try do connect at the first time, I received the follow error menssage:

"ERR_EMPTY_RESPONSE", and sometime "ERR_CONNECTION_CLOSED"

I used the following diagnostic command in Linux computer “docker ps” and received the following response:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 21b0620266cd openvidu/openvidu-server-kms:latest "/usr/bin/supervisor 5 days ago >Up 5 days 8443/tcp, 8888/tcp, 0.0.0.0:4443->4443/tcp, 9091/tcp sick_ritchie

What is wrong? How can I solve this?

I'm not sure sure what causes this, but when I had the same problem (with different http server) I changed listening on particular ip address (which was 127.0.0.1 in my case) to listening on all interfaces - 0.0.0.0 .

I mean http server configuration, not Docker configuration.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM