From befb0bcdeca46a289b28f4f96b085cdf8fc03736 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Thu, 9 Mar 2017 14:32:13 +0000 Subject: [PATCH] Add in sysctl container - based on @riyazdf earlier unmerged Go version https://github.com/riyazdf/moby/blob/891c006d3402698ac883b8063314c7039e6b24d8/alpine/containers/cloud-config/main.go Signed-off-by: Justin Cormack --- config.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.go b/config.go index b4d2096fa..37a2bc345 100644 --- a/config.go +++ b/config.go @@ -37,6 +37,7 @@ type MobyImage struct { Command []string NetworkMode string `yaml:"network_mode"` Pid string + Ipc string } const riddler = "mobylinux/riddler:7d4545d8b8ac2700971a83f12a3446a76db28c14@sha256:11b7310df6482fc38aa52b419c2ef1065d7b9207c633d47554e13aa99f6c0b72" @@ -77,6 +78,10 @@ func ConfigToRun(order int, path string, image *MobyImage) []string { // TODO only "host" supported args = append(args, "--pid="+image.Pid) } + if image.Ipc != "" { + // TODO only "host" supported + args = append(args, "--ipc="+image.Pid) + } for _, bind := range image.Binds { args = append(args, "-v", bind) }