Skip to main content
Do not use sudo.
PropertyValue
SeverityError
CategorySecurity
DefaultEnabled

Description

Do not use sudo as it leads to unpredictable behavior. Use a tool like gosu to enforce root.

Examples

Problematic code

FROM busybox
RUN sudo apt-get install

Correct code

FROM busybox
RUN apt-get install

Reference