Skip to content

WIP: cli/command/container: add create/run --umask#7108

Open
zhangyoufu wants to merge 2 commits into
docker:masterfrom
zhangyoufu:umask
Open

WIP: cli/command/container: add create/run --umask#7108
zhangyoufu wants to merge 2 commits into
docker:masterfrom
zhangyoufu:umask

Conversation

@zhangyoufu

@zhangyoufu zhangyoufu commented Jul 16, 2026

Copy link
Copy Markdown

- What I did

add create/run --umask flag, w/ some test cases

- How I did it

OCI runtime spec supports Umask since 2019, see opencontainers/runtime-spec@6b04c63
I just add HostConfig.Umask field in moby, then add CLI flag in docker/cli.

- How to verify it

docker run --rm --umask 1 alpine sh -c umask

- Human readable description for the release notes

- `docker create`/`docker run` now accepts `--umask` flag to specify an octal umask (User File-Creation Mode Mask) value for the container. The same umask value applies to healthcheck and `docker exec`.

- A picture of a cute animal (not mandatory but encouraged)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant