From ab2c569fb209c16724e03bae187f1d3af5767d44 Mon Sep 17 00:00:00 2001 From: baijia Date: Wed, 27 Mar 2024 17:50:39 +0800 Subject: [PATCH] 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 --- cmd/ctr/app/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/ctr/app/main.go b/cmd/ctr/app/main.go index 31f8584cc..61ed1a425 100644 --- a/cmd/ctr/app/main.go +++ b/cmd/ctr/app/main.go @@ -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{