[go: nahoru, domu]

Skip to content

Commit

Permalink
ctr: fix parsing mount options
Browse files Browse the repository at this point in the history
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 <baijia.wr@antgroup.com>
  • Loading branch information
baijia committed Mar 27, 2024
1 parent b40a912 commit ab2c569
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/ctr/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit ab2c569

Please sign in to comment.