Merge pull request #9317 from jsturtevant/fix-sbserver-windows

CRI: Handle ArgsEscaped for new Sb Server by clearing commandline in spec
This commit is contained in:
Phil Estes
2023-11-02 14:45:39 +00:00
committed by GitHub
3 changed files with 130 additions and 14 deletions

View File

@@ -146,6 +146,8 @@ func (c *criService) execInternal(ctx context.Context, container containerd.Cont
}
pspec.Args = opts.cmd
// CommandLine may already be set on the container's spec, but we want to only use Args here.
pspec.CommandLine = ""
if opts.stdout == nil {
opts.stdout = cio.NewDiscardLogger()