December 8, 20241 yr While editing a Docker container, I noticed that in the port mapping section for containers in the host network, the "Container Port" option disappears. Why does it disappear instead of the entire "Add Port" section? I understand that port mapping is meaningless in the host network mode, so what is the purpose of "Add Port" in this case?
December 8, 20241 yr Community Expert Solution Some internal docker variables may require a port specified to use for the docker container services. when running a docker in host mode. It replaces unraids ports. example sftp this is a ssh program that run on port 22 If i chose to use unraids host network the ip address will be the same ip address as unraid and replace and overshadow the host port If i Chose Bridge. (Same as host...) the ip address will be the same ip address as unraid and replace and overshadow the host port (But not fully replace/override unraids ports) If i go custom network, all ports are open on the ip you set to the docker. Review: https://docs.docker.com/engine/network/ https://docs.docker.com/get-started/docker-concepts/running-containers/publishing-ports/
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.