Merge pull request #462 from zencargo/userns

Disable user namespace remapping in docker-container driver
This commit is contained in:
Tõnis Tiigi 2020-12-03 20:03:32 -08:00 committed by GitHub
commit a0aa45a4a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)