hadolint/DL3004¶ Do not use sudo. Property Value Severity Error Category Security Default Enabled 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¶ hadolint/DL3004 Was this page helpful? Thanks for your feedback! Thanks for your feedback! Help us improve this page by opening a documentation issue.