From 13a9ee9474a066b5ae50a1c23846aef3907dcc51 Mon Sep 17 00:00:00 2001 From: Noah van der Aa Date: Thu, 20 Jan 2022 02:05:53 +0100 Subject: [PATCH] Use GID from config for container (#106) --- environment/docker/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment/docker/container.go b/environment/docker/container.go index 74ee7b7..c531836 100644 --- a/environment/docker/container.go +++ b/environment/docker/container.go @@ -175,7 +175,7 @@ func (e *Environment) Create() error { conf := &container.Config{ Hostname: e.Id, Domainname: config.Get().Docker.Domainname, - User: strconv.Itoa(config.Get().System.User.Uid), + User: strconv.Itoa(config.Get().System.User.Uid) + ":" + strconv.Itoa(config.Get().System.User.Gid), AttachStdin: true, AttachStdout: true, AttachStderr: true,