Warning: Published Ports Are Discarded When Using Host Network Mode?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, this is true. When using host network mode, the published ports are discarded and not available for external use. This is because the host network mode bypasses the Docker network stack, so the ports are not exposed to the outside world.