Docker Community Forums

Share and learn in the Docker community.

Docker Firewalld Issues & Linuxserver/Plex container



This is a question that is bordering on two issues. I have a docker machine running where I recently installed the PLEX container from linuxserver/plex. The current problem is that I cannot access the site to configure PLEX https://localhost:32400/web. In my attempts to determine why this is occurring, I noticed that port 32400 appeared to be closed even though it should’ve been opened when the container was created, I am using the host network. I cannot figure out why I can’t access the machine itself, everything looks fine but here is the port thing I’m referring too and possibly why its not working…Also here is what I used to create the docker container. To me these rules should’ve been created already because I used the host option. All I see are firewall warnings relating to iptables when I look at the firewalld service whcih I’ve seen is supposed to be ‘ok’ but it doesn’t appear anything happened for opening ports

-e VERSION=latest
-e PUID=1001 -e PGID=1001
-e TZ=Americas/Chicago
-v /home/docker/plex/config:/config
-v /home/docker/plex/movies:/data/movies
-v /home/docker/plex/tvshows:/data/tvshows
-v /home/docker/plex/sports:/data/sports
-v /home/docker/plex/transcode:/transcode

I attempted to see if I could access the site using curl

curl -i http://localhost:32400 
curl -i

I then verified open ports with NMAP


Starting Nmap 6.40 ( ) at 2019-01-18 12:52 CST
Nmap scan report for
Host is up (0.00049s latency).
Not shown: 999 closed ports
22/tcp open  ssh

Nmap done: 1 IP address (1 host up) scanned in 0.10 seconds

So clearly port 32400 is not open, so I went to firewall-cmd

#sudo firewall-cmd --get-active-zones
#sudo firewall-cmd --zone=public --add-port=32400/tcp --permanent
#sudo firewall-cmd --reload

I also checked to see if it was open

#sudo firewall-cmd --zone=public --list-ports

However, NMAP still shows its closed. Any idea why firewalld would show an open port on the docker host machine but it is actually closed? I’m not even sure this will get the site working for Plex but this can’t be helping…