mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Setup user groups in lxc driver
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
c8c11bfc36
commit
821ec8334f
1 changed files with 3 additions and 0 deletions
|
@ -420,6 +420,9 @@ func setupUser(userSpec string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := syscall.Setgroups(execUser.Sgids); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := system.Setgid(execUser.Gid); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue