mirror of https://github.com/docker/compose.git
Merge pull request #1424 from gtardif/more_composefiles_attr
Map composefiles privileged, isolation
This commit is contained in:
commit
30e2d1d360
|
@ -260,7 +260,6 @@ 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),
|
||||
}
|
||||
|
||||
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue