Mount propagation update to include docker config (#7854)

This commit is contained in:
Vladimir Vivien
2018-03-26 14:20:01 -04:00
committed by k8s-ci-robot
parent f7bccde73e
commit 8e33f9c8a4
+15
View File
@@ -1111,6 +1111,21 @@ In addition, any volume mounts created by Containers in Pods must be destroyed
(unmounted) by the Containers on termination.
{: .caution}
### Configuration
Before mount propagation can work properly on some deployments (CoreOS,
RedHat/Centos, Ubuntu) mount share must be configured correctly in
Docker as shown below.
Edit your Docker's `systemd` service file. Set `MountFlags` as follows:
```shell
MountFlags=shared
```
Or, remove `MountFlags=slave` if present. Then restart the Docker daemon:
```shell
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
```
{% endcapture %}
{% capture whatsnext %}