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:
parent
b40a912e7b
commit
ab2c569fb2
@ -86,6 +86,7 @@ stable from release to release of the containerd project.`
|
|||||||
|
|
||||||
containerd CLI
|
containerd CLI
|
||||||
`
|
`
|
||||||
|
app.DisableSliceFlagSeparator = true
|
||||||
app.EnableBashCompletion = true
|
app.EnableBashCompletion = true
|
||||||
app.Flags = []cli.Flag{
|
app.Flags = []cli.Flag{
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
|
Loading…
Reference in New Issue
Block a user