Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 81bc42b

Browse files
committed
container: don't specify the username in oci spec
Signed-off-by: fupan <[email protected]>
1 parent 51ac7fe commit 81bc42b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daemon/pod/container.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ func (c *Container) ociSpec(cjson *dockertypes.ContainerJSON) *specs.Spec {
607607
* thus it needed to convert the user name and group name to UID and GID in
608608
* the future, here just set it to "0" as default.
609609
*/
610-
ocispec.Process.User = specs.User{UID: 0, GID: 0, Username: "root"}
610+
ocispec.Process.User = specs.User{UID: 0, GID: 0}
611611

612612
for _, l := range c.spec.Ulimits {
613613
ltype := strings.ToLower(l.Name)

0 commit comments

Comments
 (0)