From e8ae2b85e90fc27e74de032698224e7972673cec Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Mon, 25 Jun 2018 12:07:50 -0700 Subject: runsc: add a `multi-container` flag to enable multi-container support. PiperOrigin-RevId: 201995800 Change-Id: I770190d135e14ec7da4b3155009fe10121b2a502 --- runsc/boot/config.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runsc/boot/config.go') diff --git a/runsc/boot/config.go b/runsc/boot/config.go index 3fca16cce..24be82906 100644 --- a/runsc/boot/config.go +++ b/runsc/boot/config.go @@ -176,6 +176,10 @@ type Config struct { // DisableSeccomp indicates whether seccomp syscall filters should be // disabled. Pardon the double negation, but default to enabled is important. DisableSeccomp bool + + // MultiContainer enables multiple containers support inside one sandbox. + // TODO: Remove this when multiple container is fully supported. + MultiContainer bool } // ToFlags returns a slice of flags that correspond to the given Config. @@ -188,6 +192,7 @@ func (c *Config) ToFlags() []string { "--debug-log-dir=" + c.DebugLogDir, "--file-access=" + c.FileAccess.String(), "--overlay=" + strconv.FormatBool(c.Overlay), + "--multi-container=" + strconv.FormatBool(c.MultiContainer), "--network=" + c.Network.String(), "--log-packets=" + strconv.FormatBool(c.LogPackets), "--platform=" + c.Platform.String(), -- cgit v1.2.3