Closed mazshar closed 1 year ago
Hello,
I am trying to setup homebridge on my device and I am facing this exact issue. Were you able to open ports to container? If yes, How?
Thanks for replying.
But I was able to solve the issue by changing network_mode to 'bridge' from 'host'. This helped me to open the container ports to my local system port.
Current Situation
I'm running an Ubuntu 22.04 LTS server with various docker containers using docker-compose. When I set
network_mode=host
and check withdocker ps
there are no open ports. However if I change the network mode to bridge and expose the ports, they appear.Docker version 23.0.1, build a5ee5b1 Docker Compose version v2.16.0
Docker Config
Logs
No response
Host Operating System
Ubuntu / Debian (or a variant)
Host Architecture
x86_64 / amd64