Merge pull request #8481 from thaJeztah/stack_sysctl

[19.03] Update compose-file reference for sysctls
This commit is contained in:
Usha Mandya 2019-09-23 16:43:52 +02:00 committed by GitHub
commit af803ce80d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -931,7 +931,6 @@ The following sub-options (supported for `docker-compose up` and `docker-compose
- [network_mode](#network_mode)
- [restart](#restart)
- [security_opt](#security_opt)
- [sysctls](#sysctls)
- [userns_mode](#userns_mode)
>**Tip:** See the section on [how to configure volumes
@ -1730,7 +1729,12 @@ sysctls:
- net.ipv4.tcp_syncookies=0
```
> **Note**: This option is ignored when
You can only use sysctls that are namespaced in the kernel. Docker does not
support changing sysctls inside a container that also modify the host system.
For an overview of supported sysctls, refer to [configure namespaced kernel
parameters (sysctls) at runtime](/engine/reference/commandline/run/#configure-namespaced-kernel-parameters-sysctls-at-runtime).
> This option requires Docker Engine 19.03 or up when
> [deploying a stack in swarm mode](/engine/reference/commandline/stack_deploy.md)
> with a (version 3) Compose file.