RTMP Streaming does not work from Docker container <p>I have an application that streams data via RTMP with a command roughly like this:</p> <pre><code>ffmpeg -y -loglevel warning -f dshow -i - -vf crop=690:388:136:0 -r 30 -s 962x388 -threads 2 -vcodec libx264 -vpre baseline -vpre my_ffpreset -f flv rtmp://some.url.com/live/myStream.sdp </code></pre> <p>It works when I run it from the command line it works. But if I run it from the docker container it can't seem to connect to the RTMP URL</p> <p>If I run the container using:</p> <pre><code>docker run -it container_name /bin/bash </code></pre> <p>I can ping the URL successfully so I don't know what the problem is.</p> <p><strong>Update:</strong> Just to be extra clear, I want to be able to connect to an RMTP server that is on the Internet from within the Docker container. And it is this connection ffmpeg -> internet that can't be established.</p>