Difference between revisions of "Dockerfile: USER"

From wikieduonline
Jump to navigation Jump to search
m (Welcome moved page USER to Dockerfile: USER)
 
Line 3: Line 3:
 
== Related ==
 
== Related ==
 
* <code>[[FROM]]</code>
 
* <code>[[FROM]]</code>
 +
* [[runAsUser]]
  
 
== See also ==
 
== See also ==

Latest revision as of 18:30, 27 October 2024

The USER (doc) 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.

Related[edit]

See also[edit]

Advertising: