Disable user namespace remapping in docker-container driver

Signed-off-by: Andrew Haines <andrew.haines@zencargo.com>
This commit is contained in:
Andrew Haines 2020-12-03 10:48:51 +00:00
parent 1ccf0bd7d8
commit 37020dc8da
No known key found for this signature in database
GPG Key ID: 8435B896683B974A

View File

@ -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)