How to run kurento java web server on docker

59 views
Skip to first unread message

Francois Vernier

unread,
Nov 5, 2019, 6:49:21 AM11/5/19
to kurento
Hello everyone.

I want to run this kurento example: https://doc-kurento.readthedocs.io/en/stable/tutorials/java/tutorial-one2one.html

But I have some issues with application server when I building it on docker.

When I run kms docker - it run's successfully and app server runs as well. I setted port of kurento-media-server as 8889:8888 and IP in docker container when I checked was 172.17.0.2. Also, I setted port of web app as 8081:8080.

When i tried to open a web-page - it was not responded.

My url was: https://192.168.0.2:8443, where 192.168.0.2 is IP of my server where I run docker. Also I tried to connect to docker container IP directly with https://172.17.0.3:8443.

My docker coomands:

1) kms comand -    docker run -d --name kms -p 8889:8888 kms 2) application server comand - docker run -d --name apps -p 8081:8080 --link kms apps

What mistakes I have made here? May'be I need to change IP in ENTRYPOINT?

I spend more than than 2 weeks and i still didnt find solution.



Dockerfile.txt

Micael Gallego

unread,
Nov 5, 2019, 5:13:40 PM11/5/19
to kur...@googlegroups.com
You should open https://192.168.0.2:8081 right? At least, that is the port you are binding. If you want to use another port, you should bind also.

On the other hand... have you took a look to OpenVidu? 

Best regards

Micael Gallego
Kurento / OpenVidu Project Lead


--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/b073d36e-088d-4902-be87-350b702c82a5%40googlegroups.com.

Francois Vernier

unread,
Nov 6, 2019, 2:40:08 AM11/6/19
to kurento

According to the official documentation, web app starts on port 8443. I tried to connect to 8081, but nothing changed. 

Also, when I launch kms with docker and app server without docker - everything works fine. I can connect to 8443. But when I start app server with docker - nothing works.

P.S. Nope, I have not looked to OpenVidu yet.





To unsubscribe from this group and stop receiving emails from it, send an email to kur...@googlegroups.com.

Francois Vernier

unread,
Nov 13, 2019, 3:28:24 AM11/13/19
to kurento
Also there is some issue with video when I start KMS in docker. When I don't use docker there is no problem and remote video is working well, but when KMS starts in docker there is no remote video. I thought that there is might be a problem with STUN server, that's why I setup STUN server and start docker KMS again and there was no remote video as well. Also I noticed that all setups with STUN server dissapears when container stop's. Any help?

вторник, 5 ноября 2019 г., 14:49:21 UTC+3 пользователь Francois Vernier написал:

Francois Vernier

unread,
Nov 26, 2019, 4:08:02 AM11/26/19
to kurento
Alright, I figured out how to run app server in docker. Right now app server is connected and there is no more exceptions. But there is some interesting issue that I cannot handle with. 
The thing is, when I run kms in docker and app server NOT in docker - i can connect to my app server with url: https://192.168.0.2:8443  where 192.168.0.2 is my server IP adress and everything is fine. But when I start app server in docker - it's not work anymore. I tried to connect to app docker container directly with this url: https://172.17.03:8443. Also I tried to run app server with other ports in docker and nothing works. Has anyone come across this? 


Francois Vernier

unread,
Nov 26, 2019, 8:20:23 AM11/26/19
to kurento
Finally I figured out how to do that. The correct docker command for app server is
docker run --network=host -t --name apps -p 8080:8080 apps


Reply all
Reply to author
Forward
0 new messages