| 1 |
## Output |
| 2 |
|
| 3 |
```text |
| 4 |
Defined protocol '80/TcP' in EXPOSE instruction should be lowercase |
| 5 |
``` |
| 6 |
|
| 7 |
## Description |
| 8 |
|
| 9 |
Protocol names in the [`EXPOSE`](https://docs.docker.com/reference/dockerfile/#expose) |
| 10 |
instruction should be specified in lowercase to maintain consistency and |
| 11 |
readability. This rule checks for protocols that are not in lowercase and |
| 12 |
reports them. |
| 13 |
|
| 14 |
## Examples |
| 15 |
|
| 16 |
❌ Bad: protocol is not in lowercase. |
| 17 |
|
| 18 |
```dockerfile |
| 19 |
FROM alpine |
| 20 |
EXPOSE 80/TcP |
| 21 |
``` |
| 22 |
|
| 23 |
✅ Good: protocol is in lowercase. |
| 24 |
|
| 25 |
```dockerfile |
| 26 |
FROM alpine |
| 27 |
EXPOSE 80/tcp |
| 28 |
``` |