mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
config: fix tmpfs parsing
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
parent
b47f3dec4a
commit
41c536908d
@ -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}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user