Skip to main content
Protocol names in EXPOSE instructions should be lowercase.
PropertyValue
SeverityWarning
CategoryStyle
DefaultEnabled
Auto-fixYes (--fix)

Description

Protocol names in the EXPOSE instruction should be specified in lowercase to maintain consistency and readability.

Examples

Bad:
EXPOSE 80/TcP
Good:
EXPOSE 80/tcp

Auto-fix

The fix lowercases the protocol in EXPOSE port specs.
# Before
EXPOSE 8080/TCP

# After (with --fix)
EXPOSE 8080/tcp

Reference