-
Notifications
You must be signed in to change notification settings - Fork 1.4k
docs: rewrite COPY --chown/--chmod, add non-octal --chmod (labs) #6430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| not translate between Linux and Windows, the use of `/etc/passwd` and `/etc/group` for | ||
| translating user and group names to IDs restricts this feature to only be viable for | ||
| Linux OS-based containers. | ||
| The `--chmod` flag is not supported when building Windows containers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk if this is worth mentioning still, it was probably a leftover from when this doc described the legacy builder. But I guess it doesn't hurt; still applies in the (experimental) wcow case.
| ``` | ||
|
|
||
| The `--chmod` flag supports octal notation (e.g., `755`, `644`). | ||
| Symbolic notation (e.g., `+x`, `g=u`) requires the `docker/dockerfile:1-labs` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.14+ , no labs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
| The `--chmod` flag supports octal notation (e.g., `755`, `644`). | ||
| Symbolic notation (e.g., `+x`, `g=u`) requires the `docker/dockerfile:1-labs` | ||
| syntax directive. This is useful when octal isn't flexible enough. For example, | ||
| `u=rwX,go=rX` sets directories to 755 and files to 644, while preserving the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe link to man chmod like https://man.freebsd.org/cgi/man.cgi?chmod for a longer explanation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
2ba142c to
fc93370
Compare
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
fc93370 to
0af0054
Compare
docs follow-up to: