Skip to content

Commit

Permalink
Mount propagation update to include docker config (#7854)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirvivien authored and k8s-ci-robot committed Mar 26, 2018
1 parent f7bccde commit 8e33f9c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/concepts/storage/volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 8e33f9c

Please sign in to comment.