ctr: fix parsing mount options

Set 'DisableSliceFlagSeparator = true'

urfave/cli/v2 uses ',' as default string slice separator.
That means '--mount type=bind,src=/src,des=/des,options=rbind:rw'
will be token as four bind mount options.

Fixes: #10003

Signed-off-by: baijia <baijia.wr@antgroup.com>
This commit is contained in:
baijia 2024-03-27 17:50:39 +08:00
parent b40a912e7b
commit ab2c569fb2

View File

@ -86,6 +86,7 @@ stable from release to release of the containerd project.`
containerd CLI
`
app.DisableSliceFlagSeparator = true
app.EnableBashCompletion = true
app.Flags = []cli.Flag{
&cli.BoolFlag{