Skip to content

Commit ab2c569

Browse files
author
baijia
committed
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: containerd#10003 Signed-off-by: baijia <[email protected]>
1 parent b40a912 commit ab2c569

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/ctr/app/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ stable from release to release of the containerd project.`
8686
8787
containerd CLI
8888
`
89+
app.DisableSliceFlagSeparator = true
8990
app.EnableBashCompletion = true
9091
app.Flags = []cli.Flag{
9192
&cli.BoolFlag{

0 commit comments

Comments
 (0)