Merge pull request #1424 from gtardif/more_composefiles_attr

Map composefiles privileged, isolation
This commit is contained in:
Nicolas De loof 2021-03-15 09:23:11 +01:00 committed by GitHub
commit 30e2d1d360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -260,8 +260,7 @@ func (s *composeService) getCreateOptions(ctx context.Context, p *types.Project,
Env: convert.ToMobyEnv(service.Environment),
Healthcheck: convert.ToMobyHealthCheck(service.HealthCheck),
Volumes: volumeMounts,
StopTimeout: convert.ToSeconds(service.StopGracePeriod),
StopTimeout: convert.ToSeconds(service.StopGracePeriod),
}
portBindings := buildContainerPortBindingOptions(service)
@ -295,6 +294,8 @@ func (s *composeService) getCreateOptions(ctx context.Context, p *types.Project,
ExtraHosts: service.ExtraHosts,
SecurityOpt: service.SecurityOpt,
UsernsMode: container.UsernsMode(service.UserNSMode),
Privileged: service.Privileged,
Isolation: container.Isolation(service.Isolation),
}
networkConfig := buildDefaultNetworkConfig(service, networkMode, getContainerName(p.Name, service, number))