Skip to content

Commit af803ce

Browse files
authored
Merge pull request #8481 from thaJeztah/stack_sysctl
[19.03] Update compose-file reference for sysctls
2 parents 1b914b5 + cf8215e commit af803ce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

compose/compose-file/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,6 @@ The following sub-options (supported for `docker-compose up` and `docker-compose
931931
- [network_mode](#network_mode)
932932
- [restart](#restart)
933933
- [security_opt](#security_opt)
934-
- [sysctls](#sysctls)
935934
- [userns_mode](#userns_mode)
936935

937936
>**Tip:** See the section on [how to configure volumes
@@ -1730,7 +1729,12 @@ sysctls:
17301729
- net.ipv4.tcp_syncookies=0
17311730
```
17321731

1733-
> **Note**: This option is ignored when
1732+
You can only use sysctls that are namespaced in the kernel. Docker does not
1733+
support changing sysctls inside a container that also modify the host system.
1734+
For an overview of supported sysctls, refer to [configure namespaced kernel
1735+
parameters (sysctls) at runtime](/engine/reference/commandline/run/#configure-namespaced-kernel-parameters-sysctls-at-runtime).
1736+
1737+
> This option requires Docker Engine 19.03 or up when
17341738
> [deploying a stack in swarm mode](/engine/reference/commandline/stack_deploy.md)
17351739
> with a (version 3) Compose file.
17361740

0 commit comments

Comments
 (0)