From 8e33f9c8a497d380c211d5cbe2b309916fea1377 Mon Sep 17 00:00:00 2001 From: Vladimir Vivien Date: Mon, 26 Mar 2018 14:20:01 -0400 Subject: [PATCH] Mount propagation update to include docker config (#7854) --- docs/concepts/storage/volumes.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/concepts/storage/volumes.md b/docs/concepts/storage/volumes.md index 21a9f0014105f..f266a050272ab 100644 --- a/docs/concepts/storage/volumes.md +++ b/docs/concepts/storage/volumes.md @@ -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 %}