Skip to content

Daemon default values of namespaced kernel parameters #33649

@sungwonh

Description

@sungwonh

When create a container, the namespaced kernel parameters such as /proc/sys/net/ipv4/tcp_keepalive_time are initialized to the kernel default values. Using --sysctl option of docker run, they can be overridden. However they cannot be overridden in swarm mode because --sysctl option is not supported in docker service (#25209). The only way to override them in swarm mode is to modify the kernel.

I think it would be helpful if the docker daemon can have default values of namespaced kernel parameters which can be set when the daemon starts. Then the default values can be used to initialize the namespaced kernel parameters of a newly created container to those values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/daemonCore Enginearea/swarmkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.kind/featureFunctionality or other elements that the project doesn't currently have. Features are new and shiny

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions