config: fix tmpfs parsing

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
Akihiro Suda 2017-05-26 08:24:48 +00:00
parent b47f3dec4a
commit 41c536908d

View File

@ -464,7 +464,7 @@ func ConfigInspectToOCI(yaml MobyImage, inspect types.ImageInspect) (specs.Spec,
dest := parts[0] dest := parts[0]
opts := []string{} opts := []string{}
if len(parts) == 2 { 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} mounts[dest] = specs.Mount{Destination: dest, Type: "tmpfs", Source: "tmpfs", Options: opts}
} }