Difference between revisions of "Dockerfile: USER"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
https://docs.docker.com/engine/reference/builder/#user
 
https://docs.docker.com/engine/reference/builder/#user
  
The <code>[[USER]]</code> 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.
+
The <code>[[USER]]</code> 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 ==
 
== Related ==
Line 7: Line 7:
  
 
== See also ==
 
== See also ==
 +
* {{UID}}
 
* {{Dockerfile}}
 
* {{Dockerfile}}
  
 
[[Category:Docker]]
 
[[Category:Docker]]

Revision as of 17:53, 27 October 2024

https://docs.docker.com/engine/reference/builder/#user

The USER 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: