Merge pull request #147 from fabiokung/loopback-up

bring the loopback interface up inside containers
This commit is contained in:
Mrunal Patel 2015-07-24 09:50:51 -07:00
commit 016bb8aaea
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, Readonlyfs: spec.Root.Readonly,
Hostname: spec.Hostname, Hostname: spec.Hostname,
Privatefs: true, Privatefs: true,
Networks: []*configs.Network{
{
Type: "loopback",
},
},
} }
for _, ns := range spec.Linux.Namespaces { for _, ns := range spec.Linux.Namespaces {
t, exists := namespaceMapping[ns.Type] t, exists := namespaceMapping[ns.Type]