From 2f2c83a2a09b20e4ffc5c1b282334376140564e5 Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Sat, 12 Mar 2016 13:18:42 +0800 Subject: [PATCH] Fix encoding gid mappings Signed-off-by: Qiang Huang --- libcontainer/container_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcontainer/container_linux.go b/libcontainer/container_linux.go index 281278f7..ed0e0235 100644 --- a/libcontainer/container_linux.go +++ b/libcontainer/container_linux.go @@ -1193,7 +1193,7 @@ func (c *linuxContainer) bootstrapData(cloneFlags uintptr, nsMaps map[configs.Na // write gid mappings if len(c.config.GidMappings) > 0 { - b, err := encodeIDMapping(c.config.UidMappings) + b, err := encodeIDMapping(c.config.GidMappings) if err != nil { return nil, err }