Difference between revisions of "Dockerfile: USER"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | The USER instruction sets the user name (or UID) and optionally the user group (or GID) to use as the default user and group for the remainder of the current stage. The specified user is used for RUN instructions and at runtime, runs the relevant ENTRYPOINT and CMD commands. | + | https://docs.docker.com/engine/reference/builder/#user |
+ | |||
+ | The <code>[[USER]]</code> instruction sets the user name (or UID) and optionally the user group (or GID) to use as the default user and group for the remainder of the current stage. The specified user is used for RUN instructions and at runtime, runs the relevant <code>ENTRYPOINT</code> and <code>CMD</code> commands. | ||
== See also == | == See also == |
Revision as of 12:55, 7 November 2022
https://docs.docker.com/engine/reference/builder/#user
The USER
instruction sets the user name (or UID) and optionally the user group (or GID) to use as the default user and group for the remainder of the current stage. The specified user is used for RUN instructions and at runtime, runs the relevant ENTRYPOINT
and CMD
commands.
See also
Dockerfile: FROM, RUN, CMD, ENTRYPOINT, WORKDIR, COPY, ADD, USER, ENV, ARG, HEALTHCHECK
,hadolint, LABEL, EXPOSE
Advertising: