Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

#7108
Open
zhangyoufu wants to merge 2 commits into
docker:masterdocker/cli:masterfrom
zhangyoufu:umaskzhangyoufu/docker-cli:umaskCopy head branch name to clipboard
Open

WIP: cli/command/container: add create/run --umask#7108
zhangyoufu wants to merge 2 commits into
docker:masterdocker/cli:masterfrom
zhangyoufu:umaskzhangyoufu/docker-cli:umaskCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.