-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve port snippets and detecting already in use/restricted ports #2535
Comments
Duping to #2539 |
@bwateratmsft I think this affects a bit of Dockerfiles too because of how users may be using the EXPOSE command to open restricted ports. Also any sort of port viewer can be considered more of a Tooling feature and not compose specific. |
@ucheNkadiCode The Internet works because actually, the developer doesn't need to think and define blacklists and exclusions It is already standardized IANA TCP port numbers registry. In development, only dynamic port numbers 49152-65535 are used to avoid conflicts with existing software. For example, HTTP port 80 is mapped to Host port 8080 for testing. Multinode Cloud clusters use this range too to enable scalability: one service (container or pod) can expose a list of ports or a range of ports that are mapped randomly to host nodes but the mapping is known to the load balancer. It can transfer requests to the available node and port to be processed by the container. |
@bwateratmsft Since in the following list some port numbers are registered by Microsoft Registered port numbers. The creation of the parallel mechanism by Microsoft is a self-harming decision). The registered port number range must be excluded automatically. Private port number interval must be enabled automatically. |
When users are typing in ports in their compose, we provide a snippet that says
ports:
- "hostPort:containerPort" (although we may simply want “- hostPort” since Docker will decide the container port)
Also:
• We help Users to know which ports are already in use by another container on their host machine (yellow squigglies). We already expect containerports to be taken care of by the Docker Inc.
• We help users to know which ports are likely to be restricted (generally on Mac/Linux for ports below 1024)
Suggestions can be given if (not exhaustive):
The text was updated successfully, but these errors were encountered: