diff --git a/daemon/execdriver/lxc/driver.go b/daemon/execdriver/lxc/driver.go index 2daff50d91..54da7160a8 100644 --- a/daemon/execdriver/lxc/driver.go +++ b/daemon/execdriver/lxc/driver.go @@ -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 }