Difference between revisions of "Dockerfile: USER"

From wikieduonline
Jump to navigation Jump to search
(Created page with " {{Dockerfile}}")
Tags: Mobile web edit, Mobile edit
 
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
The <code>[[USER]]</code> ([https://docs.docker.com/engine/reference/builder/#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 <code>[[RUN]]</code> instructions and at runtime, runs the relevant <code>[[ENTRYPOINT]]</code> and <code>[[CMD]]</code> commands.
  
 +
== Related ==
 +
* <code>[[FROM]]</code>
 +
* [[spec.securityContext.runAsUser]]
 +
* [[useradd]]
  
{{Dockerfile}}
+
== See also ==
 +
* {{UID}}
 +
* {{Dockerfile}}
 +
 
 +
[[Category:Docker]]

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: