Merge pull request #147 from fabiokung/loopback-up
bring the loopback interface up inside containers
This commit is contained in:
commit
016bb8aaea
5
spec.go
5
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]
|
||||
|
|
Loading…
Reference in New Issue