X Tutup
Skip to content

Commit 1dfd8a2

Browse files
authored
Merge pull request containerd#5932 from dcantah/ctr-exec-add-cwd
2 parents e00f87f + 27046a9 commit 1dfd8a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/ctr/commands/tasks/exec.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ var execCommand = cli.Command{
104104
pspec.Terminal = tty
105105
pspec.Args = args
106106

107+
if cwd := context.String("cwd"); cwd != "" {
108+
pspec.Cwd = cwd
109+
}
110+
107111
task, err := container.Task(ctx, nil)
108112
if err != nil {
109113
return err

0 commit comments

Comments
 (0)
X Tutup