Merge pull request #5932 from dcantah/ctr-exec-add-cwd

This commit is contained in:
Fu Wei 2021-09-02 20:42:36 +08:00 committed by GitHub
commit 1dfd8a279e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,10 @@ var execCommand = cli.Command{
pspec.Terminal = tty pspec.Terminal = tty
pspec.Args = args pspec.Args = args
if cwd := context.String("cwd"); cwd != "" {
pspec.Cwd = cwd
}
task, err := container.Task(ctx, nil) task, err := container.Task(ctx, nil)
if err != nil { if err != nil {
return err return err