Difference between revisions of "Dockerfile: USER"

From wikieduonline
Jump to navigation Jump to search
 
Line 4: Line 4:
 
* <code>[[FROM]]</code>
 
* <code>[[FROM]]</code>
 
* [[spec.securityContext.runAsUser]]
 
* [[spec.securityContext.runAsUser]]
 +
* [[useradd]]
  
 
== See also ==
 
== See also ==

Latest revision as of 13:47, 8 November 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: