cannot set net.core.rmem_max in container

898 views
Skip to first unread message

黄晋

unread,
Oct 31, 2014, 5:26:16 AM10/31/14
to docke...@googlegroups.com

Hi All,

 

We face the problem of the network configuration of Docker's image. We are going to run an application on the docker image(the latest ubuntu).

Our application needs  a large OS receive buffer (net.core.rmem_num), therefore we must increase the buffer size of the image. We want to find and change net.core.rmem_num, but no such file or configuration is found on the ubuntu image on Docker.

 

=====================================================================

 

Here is the result:

 

root@eeb71c865c47:/# sysctl net.core

net.core.somaxconn = 128

net.core.xfrm_acq_expires = 30

net.core.xfrm_aevent_etime = 10

net.core.xfrm_aevent_rseqth = 2

net.core.xfrm_larval_drop = 1

 

root@eeb71c865c47:/# ls /proc/sys/net/core

somaxconn         xfrm_aevent_etime   xfrm_larval_drop

xfrm_acq_expires  xfrm_aevent_rseqth

 

======================================================================

 

Is there a way to set the net.core.rmem_max?We have already tried the "--net host", but it is not suitable for us as we need multiple containers with network isolation.

Our host is Ubuntu 14.04 LTS, and our image are ubuntu,too.

 

Thanks a lot.

craig.o...@topng.net

unread,
Apr 13, 2016, 4:07:01 PM4/13/16
to docker-dev
Hi,

did you ever figure this out?

李孟飞

unread,
Jun 15, 2016, 5:25:19 AM6/15/16
to docker-dev
hi, I met the same problem, i can to touch rmem_max, or systcl -p to add the rmem_max, does anyone know?

在 2014年10月31日星期五 UTC+8下午5:26:16,黄晋写道:
Reply all
Reply to author
Forward
0 new messages