From e2af99fc1620434f6bb6bea7024d59ddeb66995e Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Tue, 22 Dec 2015 13:59:28 -0500 Subject: [PATCH] No options to tmpfs is valid If you run a docker run command with --tmpfs /mountpoint:noexec Or certain options that get translated into mount options, the mount command can get passed "" for mount data. So this should be valid. Signed-off-by: Dan Walsh --- mount/flags.go | 1 + 1 file changed, 1 insertion(+) diff --git a/mount/flags.go b/mount/flags.go index 4305d15..d2fb1fb 100644 --- a/mount/flags.go +++ b/mount/flags.go @@ -73,6 +73,7 @@ func parseOptions(options string) (int, string) { func ParseTmpfsOptions(options string) (int, string, error) { flags, data := parseOptions(options) validFlags := map[string]bool{ + "": true, "size": true, "mode": true, "uid": true,