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

Commit

Permalink
container: don't specify the username in oci spec
Browse files Browse the repository at this point in the history
Signed-off-by: fupan <[email protected]>
  • Loading branch information
lifupan committed Jul 11, 2018
1 parent 51ac7fe commit 81bc42b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/pod/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ func (c *Container) ociSpec(cjson *dockertypes.ContainerJSON) *specs.Spec {
* thus it needed to convert the user name and group name to UID and GID in
* the future, here just set it to "0" as default.
*/
ocispec.Process.User = specs.User{UID: 0, GID: 0, Username: "root"}
ocispec.Process.User = specs.User{UID: 0, GID: 0}

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

0 comments on commit 81bc42b

Please sign in to comment.