From 41c536908d9ba8299602925f73b4934eaefe6597 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Fri, 26 May 2017 08:24:48 +0000 Subject: [PATCH] config: fix tmpfs parsing Signed-off-by: Akihiro Suda --- cmd/moby/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/moby/config.go b/cmd/moby/config.go index 04e22914f..d52e54bc2 100644 --- a/cmd/moby/config.go +++ b/cmd/moby/config.go @@ -464,7 +464,7 @@ func ConfigInspectToOCI(yaml MobyImage, inspect types.ImageInspect) (specs.Spec, dest := parts[0] opts := []string{} if len(parts) == 2 { - opts = strings.Split(parts[2], ",") + opts = strings.Split(parts[1], ",") } mounts[dest] = specs.Mount{Destination: dest, Type: "tmpfs", Source: "tmpfs", Options: opts} }