From 963fc63fca2ffd2c927c0b3c816b913d58502b5e Mon Sep 17 00:00:00 2001 From: Fabio Kung Date: Thu, 23 Jul 2015 18:35:15 -0700 Subject: [PATCH] bring the loopback interface up Signed-off-by: Fabio Kung --- spec.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec.go b/spec.go index a448ae60..ee228d61 100644 --- a/spec.go +++ b/spec.go @@ -191,6 +191,11 @@ func createLibcontainerConfig(spec *specs.LinuxSpec) (*configs.Config, error) { Readonlyfs: spec.Root.Readonly, Hostname: spec.Hostname, Privatefs: true, + Networks: []*configs.Network{ + { + Type: "loopback", + }, + }, } for _, ns := range spec.Linux.Namespaces { t, exists := namespaceMapping[ns.Type]