Skip to content

Commit 92900bf

Browse files
authored
Merge pull request containerd#10069 from anmaxvl/hpc-default-workingdir
fix default working directory `hostProcess`
2 parents b693d13 + c7ea06a commit 92900bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/cri/server/container_create.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,8 @@ func (c *criService) buildWindowsSpec(
858858
specOpts = append(specOpts, oci.WithProcessCwd(config.GetWorkingDir()))
859859
} else if imageConfig.WorkingDir != "" {
860860
specOpts = append(specOpts, oci.WithProcessCwd(imageConfig.WorkingDir))
861+
} else if cntrHpc {
862+
specOpts = append(specOpts, oci.WithProcessCwd(`C:\hpc`))
861863
}
862864

863865
if config.GetTty() {

0 commit comments

Comments
 (0)