DL3011: Valid UNIX ports range from 0 to 65535
Error Reliability
Why This Matters
EXPOSE with an invalid port number (outside 0-65535) is silently accepted by Docker but has no effect. This is almost always a typo or misconfiguration that wastes debugging time when the expected port is not accessible. Valid TCP/UDP ports range from 0 to 65535.
How to Fix
Use a valid port number between 0 and 65535
Before (incorrect)
EXPOSE 99999 After (correct)
EXPOSE 8080 Rule Details
- Rule Code
- DL3011
- Severity
- Error
- Category
- Reliability