Skip to content

Commit 68b122c

Browse files
committed
hcsoci: Do not set container root for WCOW
1 parent 837c568 commit 68b122c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

internal/hcsoci/create.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"fmt"
1010
"os"
1111
"path/filepath"
12-
"strconv"
1312

1413
"github.com/Microsoft/go-winio/pkg/guid"
1514
"github.com/Microsoft/hcsshim/internal/cow"
@@ -192,9 +191,6 @@ func CreateContainer(ctx context.Context, createOptions *CreateOptions) (_ cow.C
192191
if coi.HostingSystem != nil {
193192
if coi.Spec.Linux != nil {
194193
r.SetContainerRootInUVM(fmt.Sprintf(lcowRootInUVM, coi.ID))
195-
} else {
196-
n := coi.HostingSystem.ContainerCounter()
197-
r.SetContainerRootInUVM(fmt.Sprintf(wcowRootInUVM, strconv.FormatUint(n, 16)))
198194
}
199195
// install kernel drivers if necessary.
200196
// do this before network setup in case any of the drivers requested are

0 commit comments

Comments
 (0)