You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running docker/container and set the kernel parameters net.core.rmem_default at the docker host level. However, inside the container, I am unable to access the net. core.rmem_default value set at the host level.
Steps to reproduce the issue:
Modify /etc/sysctl.conf at the docker host level. Save the file and execute sysctl -p.
This is likely because the net options are namespaced, in which case they should be passed to the container through the --sysctl flag;
However, there's a (probably still unresolved) issue in the kernel, which causes setting them for the container's namespace to produce an error (see this ticket: #30778)
docker run -it --rm \
--sysctl net.core.rmem_default=262144 \
--sysctl net.core.rmem_max=4194304 \
alpine sh -c 'sysctl -a | grep rmem_'
docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: write sysctl key net.core.rmem_default: open /proc/sys/net/core/rmem_default: no such file or directory: unknown.
Does it work if you restart the docker daemon, and create the container after that? (wondering if it doesn't pick up the changes while the daemon is running)
Description
I am running docker/container and set the kernel parameters net.core.rmem_default at the docker host level. However, inside the container, I am unable to access the net. core.rmem_default value set at the host level.
Steps to reproduce the issue:
It returns empty.
Describe the results you received:
Inside the container, the output is empty for
sysctl -a | grep rmemDescribe the results you expected:
The container must be able to read the rmem value from the docker host as this parameter cannot be a namespace.
Additional information you deem important (e.g. issue happens only occasionally):
The Linux kernel version
5.4.17-2036.104.5.el7uekOracle 7.9Output of
docker version:Output of
docker info:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: