Docker-nginx-rtmp
Docker-nginx-rtmp copied to clipboard
Why my nginx-rtmp docker image cannot work
trafficstars
I use the following command to build a docker:
docker build -t nginx-rtmp:latest .
And after it is built successfully, the size only has 16.9MB, but the docker image pulled from your docker hub has 20.6MB, then I use the following command to start the image:
docker run -p 1935:1935 -p 8080:8080 -e RTMP_STREAM_NAMES=test1,test2 nginx-rtmp
the following error happens:
nginx: [emerg] the same path name "/tmp/hls" used in /opt/nginx/conf/nginx.conf:70 and in /opt/nginx/conf/nginx.conf:70
Why are you building instead of just running docker pull? Have you changed anything in the configs?