JasonRivers / Docker-nginx-rtmp

Docker Image for RTMP streams using Nginx
180 stars 114 forks source link

Why my nginx-rtmp docker image cannot work #17

Open harlanc opened 5 years ago

harlanc commented 5 years ago

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

JasonRivers commented 5 years ago

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