From 37020dc8dac46099b17db88a68f4ead3db184a00 Mon Sep 17 00:00:00 2001 From: Andrew Haines Date: Thu, 3 Dec 2020 10:48:51 +0000 Subject: [PATCH] Disable user namespace remapping in docker-container driver Signed-off-by: Andrew Haines --- driver/docker-container/driver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/driver/docker-container/driver.go b/driver/docker-container/driver.go index d340f0e9..90df0505 100644 --- a/driver/docker-container/driver.go +++ b/driver/docker-container/driver.go @@ -93,6 +93,7 @@ func (d *Driver) create(ctx context.Context, auth driver.Auth, l progress.SubLog if err := l.Wrap("creating container "+d.Name, func() error { hc := &container.HostConfig{ Privileged: true, + UsernsMode: "host", } if d.netMode != "" { hc.NetworkMode = container.NetworkMode(d.netMode)