Revert libcontainer to 89ab7f2ccc1

This commit is contained in:
Michael Schurter
2017-03-01 10:41:07 -08:00
parent 2b479554fd
commit 1df41cffb8
27 changed files with 264 additions and 713 deletions

View File

@@ -18,7 +18,6 @@ import (
"github.com/hashicorp/nomad/client/stats"
cstructs "github.com/hashicorp/nomad/client/structs"
"github.com/hashicorp/nomad/helper"
"github.com/hashicorp/nomad/nomad/structs"
)
@@ -77,7 +76,7 @@ func (e *UniversalExecutor) configureCgroups(resources *structs.Resources) error
e.resConCtx.groups.Path = filepath.Join("/nomad", cgroupName)
// TODO: verify this is needed for things like network access
e.resConCtx.groups.Resources.AllowAllDevices = helper.BoolToPtr(true)
e.resConCtx.groups.Resources.AllowAllDevices = true
if resources.MemoryMB > 0 {
// Total amount of memory allowed to consume