Difference between revisions of "Dockerfile: USER"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
== Related ==
 
== Related ==
 
* <code>[[FROM]]</code>
 
* <code>[[FROM]]</code>
* [[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: