To run the coturn service using Docker, I use the following command. However, when I execute the command, there is no response, and although the container is created, it does not run. Therefore, if I run it without specifying the open ports and using
--network=host, it runs successfully. However, I need to encapsulate this service with Docker Compose and connect it to the same bridge network as other services.
How can I figure this problem out?
docker run -d -p 3478:3478 -p 3478:3478/udp -p 5349:5349 -p 5349:5349/udp -p 49152-65535:49152-65535/udp coturn/coturn
I performed this test on both AWS EC2 and macOS, and the results were the same.
Testing docker version:
$ docker --version Docker version 24.0.2, build cb74dfc