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 <dwalsh@redhat.com>
This commit is contained in:
Dan Walsh 2015-12-22 13:59:28 -05:00
parent 94d7adb3c4
commit e2af99fc16

View file

@ -73,6 +73,7 @@ func parseOptions(options string) (int, string) {
func ParseTmpfsOptions(options string) (int, string, error) { func ParseTmpfsOptions(options string) (int, string, error) {
flags, data := parseOptions(options) flags, data := parseOptions(options)
validFlags := map[string]bool{ validFlags := map[string]bool{
"": true,
"size": true, "size": true,
"mode": true, "mode": true,
"uid": true, "uid": true,