Skip to content

/dev/shm default size should be configurable easily #3654

@d-axel-b

Description

@d-axel-b

What is the problem you're trying to solve
The default size of /dev/shm is hardcoded which is annoying when you have a lot of similar containers that need more than 64MB, -> you will have to modify volume specs for each container you run.

Hardcoded here:

Options: []string{"nosuid", "noexec", "nodev", "mode=1777", "size=65536k"},

Describe the solution you'd like
It would be great for this value to be configurable like it is in dockerd. (default-shm-size) or eventually forwarding the dockerd value.

Additional context
Moreover, It may also be great to be able to modify the size (not the default one) for kubernetes usage, cf: kubernetes/kubernetes#28272

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions