bring the loopback interface up

Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
This commit is contained in:
Fabio Kung 2015-07-23 18:35:15 -07:00
parent 1ed929f177
commit 963fc63fca
1 changed files with 5 additions and 0 deletions

View File

@ -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]