Skip to content
Lukas Martinelli edited this page Jan 11, 2016 · 2 revisions

Do not use sudo.

Problematic code:

FROM busybox
RUN sudo apt-get install

Correct code:

FROM busybox
RUN apt-get install

Rationale:

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

Clone this wiki locally