Skip to content
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

It can't set sysctl settings at docker run #1

Open
Subaru365 opened this issue Dec 18, 2017 · 2 comments
Open

It can't set sysctl settings at docker run #1

Subaru365 opened this issue Dec 18, 2017 · 2 comments

Comments

@Subaru365
Copy link
Owner

Subaru365 commented Dec 18, 2017

I wanna enhance tcp sysctl settings for high performance.
but now, It doesn't working.

I tried

docker run \
    --sysctl net.core.somaxconn=10240 \
    --sysctl net.ipv4.tcp_max_syn_backlog=10240 \
    --sysctl net.core.netdev_max_backlog=10240 \
    --sysctl net.ipv4.tcp_tw_recycle=1 \
    --sysctl net.ipv4.tcp_tw_reuse=1 \
    ...

but now, just cleared command is

docker run \
    --sysctl net.core.somaxconn=10240 

This problem is posting at here.
moby/moby#30778

I still watch it.

@mastercomBeijing
Copy link

  1. you can use --privileged:
    docker run --privileged ...
  2. set your kernel parameters in container:
  3. Make the parameters take effect
    sysctl -p

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

No branches or pull requests

3 participants
@Subaru365 @mastercomBeijing and others