> ## Documentation Index
> Fetch the complete documentation index at: https://tally.wharflab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# hadolint/DL3011

> Valid UNIX ports range from 0 to 65535.

Valid UNIX ports range from 0 to 65535.

| Property | Value |
| - | - |
| Severity | Error |
| Category | Correctness |
| Default | Enabled |

## Description

Valid UNIX ports range from 0 to 65535. Exposing a port outside this range is invalid and will result in an error.

## Examples

### Problematic code

```dockerfile theme={null}
FROM busybox
EXPOSE 80000
```

### Correct code

```dockerfile theme={null}
FROM busybox
EXPOSE 65535
```

## Reference

* [hadolint/DL3011](https://github.com/hadolint/hadolint/wiki/DL3011)


## Related topics

- [Hadolint rules](/rules/hadolint/overview.md)
- [hadolint/DL3020](/rules/hadolint/DL3020.md)
- [hadolint/DL3021](/rules/hadolint/DL3021.md)
- [hadolint/DL3022](/rules/hadolint/DL3022.md)
- [hadolint/DL3023](/rules/hadolint/DL3023.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.