diff --git a/libcontainer/integration/checkpoint_test.go b/libcontainer/integration/checkpoint_test.go index db31fe21..76d86c09 100644 --- a/libcontainer/integration/checkpoint_test.go +++ b/libcontainer/integration/checkpoint_test.go @@ -5,9 +5,11 @@ import ( "io/ioutil" "os" "strings" + "syscall" "testing" "github.com/opencontainers/runc/libcontainer" + "github.com/opencontainers/runc/libcontainer/configs" ) func TestCheckpoint(t *testing.T) { @@ -28,6 +30,12 @@ func TestCheckpoint(t *testing.T) { config := newTemplateConfig(rootfs) + config.Mounts = append(config.Mounts, &configs.Mount{ + Destination: "/sys/fs/cgroup", + Device: "cgroup", + Flags: defaultMountFlags | syscall.MS_RDONLY, + }) + factory, err := libcontainer.New(root, libcontainer.Cgroupfs) if err != nil {