浏览代码

implement support for oom_score_adj

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 2 年之前
父节点
当前提交
fb5b90ed47
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      pkg/compose/create.go

+ 1 - 0
pkg/compose/create.go

@@ -397,6 +397,7 @@ func (s *composeService) getCreateOptions(ctx context.Context, p *types.Project,
 		LogConfig:      logConfig,
 		GroupAdd:       service.GroupAdd,
 		Links:          links,
+		OomScoreAdj:    int(service.OomScoreAdj),
 	}
 
 	return &containerConfig, &hostConfig, networkConfig, nil