mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-12-16 15:10:12 +01:00
Add note to say COPY uses root
This commit is contained in:
parent
f0cc9fcbd6
commit
b7c3383a08
1 changed files with 1 additions and 1 deletions
|
|
@ -335,7 +335,7 @@ Here are some common text editors and their syntax highlighting modules you coul
|
|||
* [EXPOSE](https://docs.docker.com/engine/reference/builder/#expose) informs Docker that the container listens on the specified network ports at runtime. NOTE: does not actually make ports accessible.
|
||||
* [ENV](https://docs.docker.com/engine/reference/builder/#env) sets environment variable.
|
||||
* [ADD](https://docs.docker.com/engine/reference/builder/#add) copies new files, directories or remote file to container. Invalidates caches. Avoid `ADD` and use `COPY` instead.
|
||||
* [COPY](https://docs.docker.com/engine/reference/builder/#copy) copies new files or directories to container.
|
||||
* [COPY](https://docs.docker.com/engine/reference/builder/#copy) copies new files or directories to container. Note that this only copies as root, so you have to chown manually regardless of your USER / WORKDIR setting. See https://github.com/moby/moby/issues/30110
|
||||
* [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) configures a container that will run as an executable.
|
||||
* [VOLUME](https://docs.docker.com/engine/reference/builder/#volume) creates a mount point for externally mounted volumes or other containers.
|
||||
* [USER](https://docs.docker.com/engine/reference/builder/#user) sets the user name for following RUN / CMD / ENTRYPOINT commands.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue