BrandonJoffe / home_surveillance

Home surveillance system with facial recognition
1.22k stars 384 forks source link

Understanding the ports being opened when initializing docker container #50

Closed mondjef closed 6 years ago

mondjef commented 6 years ago

Hi,

I am curious to know more about why certain ports are opened between the host and docker container as I am having some issues. I understand the port 5000 as this is the port to reach the web gui of the application so it needs to be accessible between the host and the container, but the other two ports I am not sure of 9000 & 8000.
When I try to issue the docker run command I get the following message: Bind for 0.0.0.0:9000 failed: port is already allocated. My host currently runs a Nginx web server with php-fpm already running on port 9000 and assume this explains the above message however I am not sure how to fix it. I attempted to use 9001 instead of 9000 in the docker run command and it seems to work however I get socket error messages when I attempt to test camera and assume that this might be related to the fact I used 9001 instead.

Can you explain what listens on these ports and how I should go about changing the port for the docker container. Or maybe I can just use the existing php-fpm server that is on the host from within the docker container? Thanks I am new to docker and still making my way through the docs so bare with me a bit.

Thanks

BrandonJoffe commented 6 years ago

Hey @mondjef,

my apologies - both those ports can be removed. I used them for debugging some time ago and forgot to remove them.

I'll update the README.

mondjef commented 6 years ago

ok, thank you. I will have to take a look at the other error I am encountering and do more investigating.