Skip to content

Commit 8e33f9c

Browse files
vladimirvivienk8s-ci-robot
authored andcommitted
Mount propagation update to include docker config (#7854)
1 parent f7bccde commit 8e33f9c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/concepts/storage/volumes.md

+15
Original file line numberDiff line numberDiff line change
@@ -1111,6 +1111,21 @@ In addition, any volume mounts created by Containers in Pods must be destroyed
11111111
(unmounted) by the Containers on termination.
11121112
{: .caution}
11131113

1114+
### Configuration
1115+
Before mount propagation can work properly on some deployments (CoreOS,
1116+
RedHat/Centos, Ubuntu) mount share must be configured correctly in
1117+
Docker as shown below.
1118+
1119+
Edit your Docker's `systemd` service file. Set `MountFlags` as follows:
1120+
```shell
1121+
MountFlags=shared
1122+
```
1123+
Or, remove `MountFlags=slave` if present. Then restart the Docker daemon:
1124+
```shell
1125+
$ sudo systemctl daemon-reload
1126+
$ sudo systemctl restart docker
1127+
```
1128+
11141129
{% endcapture %}
11151130

11161131
{% capture whatsnext %}

0 commit comments

Comments
 (0)