From 821ec8334fd4ff3500b4e2d2338f3cc8935e17bd Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Tue, 10 Mar 2015 09:43:11 -0700 Subject: [PATCH] Setup user groups in lxc driver Signed-off-by: Alexander Morozov --- daemon/execdriver/lxc/driver.go | 3 +++ 1 file changed, 3 insertions(+) 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 }