Skip to content

Commit

Permalink
Merge pull request #10071 from anmaxvl/hostProcess-working-dir-fix
Browse files Browse the repository at this point in the history
[release/1.7] backport: fix default working directory `hostProcess`
  • Loading branch information
samuelkarp committed Apr 14, 2024
2 parents fc4b00d + 989f1ec commit 6b0cae9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cri/sbserver/container_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,8 @@ func (c *criService) buildWindowsSpec(
specOpts = append(specOpts, oci.WithProcessCwd(config.GetWorkingDir()))
} else if imageConfig.WorkingDir != "" {
specOpts = append(specOpts, oci.WithProcessCwd(imageConfig.WorkingDir))
} else if cntrHpc {
specOpts = append(specOpts, oci.WithProcessCwd(`C:\hpc`))
}

if config.GetTty() {
Expand Down

0 comments on commit 6b0cae9

Please sign in to comment.