summaryrefslogtreecommitdiffhomepage
path: root/runsc/boot/config.go
diff options
context:
space:
mode:
authorLantao Liu <lantaol@google.com>2018-06-25 12:07:50 -0700
committerShentubot <shentubot@google.com>2018-06-25 12:08:44 -0700
commite8ae2b85e90fc27e74de032698224e7972673cec (patch)
treee67bf03a17dc48b473a9ae9639d4aa35aefda3ab /runsc/boot/config.go
parentcecc1e472cc893738a070be00d303dd888b9f325 (diff)
runsc: add a `multi-container` flag to enable multi-container support.
PiperOrigin-RevId: 201995800 Change-Id: I770190d135e14ec7da4b3155009fe10121b2a502
Diffstat (limited to 'runsc/boot/config.go')
-rw-r--r--runsc/boot/config.go5
1 files changed, 5 insertions, 0 deletions
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(),