2025-11-03 21:46:57
I'm getting closer with my nginx-rtmp-Docker-container-on-MacOS project!
I started from scratch on the mac a couple days ago, reinstalled docker with homebrew and then realized that part of my problem was that macOS (and windows) has to run docker in a virtual machine container of its own and *that* can mess with networking.
So I have now figured that out. Colima, the vm that seems most popular on macOS, needs a mac specific option (--network-attached) when starting so that it gets the mac network going. Major Aha! moment.
I also learned more completely how to build my own Docker images.
I've gotten to the point where nginx is definitely running, I know the port is open (via nmap on another device), I know nginx is accepting the stream, but nginx still refuses to publish that stream to Youtube (or at least youtube is not seeing it).
I also can ping apple.com and youtube.com from within the container, so access to the outside world is working.
I
So that's where I'm at.
I just figured out how to get into a container and examine the nginx log files now.
At this point I am going to rebuild the container with nginx configured for full debug level logging. Hopefully that provides some more clues on where it is getting stuck.
I give it a 50/50 chance that it is either an nginx configuration/installation problem or another colima virtual machine/networking issue.
I've learned a lot at least and feel better about my overall Docker knowledge!
And I'm documenting on my blog as I go so I'll have a howto produced from this when it finally works!
#docker #mac #nginx #colima #rtmp #youtube #containerizeit
