From c176fcc1d94b435e2c3397ecad3bee9639faef50 Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Fri, 12 Mar 2021 10:08:01 +0100 Subject: [PATCH] Map composefiles privileged, isolation Signed-off-by: Guillaume Tardif --- local/compose/create.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/local/compose/create.go b/local/compose/create.go index 1ff3a7ebf..d3d40b30d 100644 --- a/local/compose/create.go +++ b/local/compose/create.go @@ -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))