From 87858acfadd13d357efdd7d874ad0b9a621a5fa0 Mon Sep 17 00:00:00 2001 From: Ma Shimiao Date: Fri, 30 Jun 2017 14:10:39 +0800 Subject: [PATCH] config.md: document what type should be when bind-mount I re-read config.md and found we really didn't define what type should be if we want to do bind-mount. So, I decided to add it. Signed-off-by: Ma Shimiao --- config.md | 1 + 1 file changed, 1 insertion(+) diff --git a/config.md b/config.md index ec17fab94..b40169f32 100644 --- a/config.md +++ b/config.md @@ -101,6 +101,7 @@ For POSIX platforms the `mounts` structure has the following fields: * **`type`** (string, OPTIONAL) The type of the filesystem to be mounted. * Linux: filesystem types supported by the kernel as listed in */proc/filesystems* (e.g., "minix", "ext2", "ext3", "jfs", "xfs", "reiserfs", "msdos", "proc", "nfs", "iso9660"). + Note: `type` is empty or SHOULD be ignored when `options` contains "bind" or "rbind", which means bind-mount directory `source` from host into `destination` in container. This is similar with "--bind" or "--rbind" optins in [mount(8)][mount.8]. * Solaris: corresponds to "type" of the fs resource in [zonecfg(1M)][zonecfg.1m]. ### Example (Linux)