Difference between revisions of "Dockerfile: USER"

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

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

See also

Advertising: