docker run -p 4443:4443 --rm -e openvidu.secret=MY_SECRET -e openvidu.publicurl=https://187.84.228.66:4443 openvidu/openvidu-server-kms
But when I try do connect the first time, I receive the follow error menssage: “ERR_EMPTY_RESPONSE”. sometime “ERR_CONNECTION_CLOSED”
I used the following diagnostic command in Linx 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
hello,
up vote
22
down vote
accepted
You need to publish the exposed ports by using the following options:
-P (upper case) or --publish-all that will tell Docker to use random ports from your host and map them to the exposed container’s ports.
-p (lower case) or --publish= that will tell Docker to use ports you manually set and map them to the exposed container’s ports.
The second option is preferred because you already know which ports are mapped. If you use the first option then you will need to call docker inspect demo and check which random ports are being used from your host at the Ports section.
Just run the following command:
docker run -it -p 8080:8080 demo
After that your url will wor
best regards
craig
Hi, could you include the docker version from the host you’re running the docker/docker-bench-security container on?
There is issues when different versions of Docker is trying to communicate with each other, do you get the same results when running the standalone script?
You need to publish the exposed ports by using the following options:
-P (upper case) or --publish-all that will tell Docker to use random ports from your host and map them to the exposed container’s ports.
-p (lower case) or --publish=[] that will tell Docker to use ports you manually set and map them to the exposed container’s ports.
The second option is preferred because you already know which ports are mapped. If you use the first option then you will need to call docker inspect demo and check which random ports are being used from your host at the Ports section.
Just run the following command:
docker run -it -p 8080:8080 demo
After that your url will work.
Hello there,
I was facing the same problem since last week. Bee reading multiple articles and solutions but non of them worked. But finally, your solution has helped me solve the problem.
Regards,