21 lines
632 B
Diff
21 lines
632 B
Diff
Index: docker-ce-17.11.0-ce/pkg/idtools/idtools_unix_test.go
|
|
===================================================================
|
|
--- docker-ce-17.11.0-ce.orig/pkg/idtools/idtools_unix_test.go
|
|
+++ docker-ce-17.11.0-ce/pkg/idtools/idtools_unix_test.go
|
|
@@ -239,6 +239,7 @@ func delUser(t *testing.T, name string)
|
|
}
|
|
|
|
func TestParseSubidFileWithNewlinesAndComments(t *testing.T) {
|
|
+ RequiresRoot(t)
|
|
tmpDir, err := os.MkdirTemp("", "parsesubid")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
@@ -267,6 +268,7 @@ dockremap:231072:65536`
|
|
}
|
|
|
|
func TestGetRootUIDGID(t *testing.T) {
|
|
+ RequiresRoot(t)
|
|
uidMap := []IDMap{
|
|
{
|
|
ContainerID: 0,
|