diff --git a/daemon/oci_linux.go b/daemon/oci_linux.go index f8fba2bda8..e30ea08e8c 100644 --- a/daemon/oci_linux.go +++ b/daemon/oci_linux.go @@ -198,6 +198,7 @@ func getUser(c *container.Container, username string) (specs.User, error) { } usr.UID = uint32(execUser.Uid) usr.GID = uint32(execUser.Gid) + usr.AdditionalGids = []uint32{usr.GID} var addGroups []int if len(c.HostConfig.GroupAdd) > 0 {