Docker-nginx-rtmp icon indicating copy to clipboard operation
Docker-nginx-rtmp copied to clipboard

Why my nginx-rtmp docker image cannot work

Open harlanc opened this issue 6 years ago • 1 comments
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

harlanc avatar Mar 27 '19 03:03 harlanc

Why are you building instead of just running docker pull? Have you changed anything in the configs?

JasonRivers avatar May 10 '19 08:05 JasonRivers