Skip to content

cgroups resources need update #45

@runcom

Description

@runcom

running a container with the default {runtime,config}.json from runc spec fails because swappiness is set by default to -1

$ sudo ./bin/ctr containers start test2 `pwd`
[ctr] rpc error: code = 2 desc = "unmarshal /home/runcom/src/github.com/docker/containerd/runtime.json: json: cannot unmarshal number -1 into Go value of type uint64"

Fix depends on opencontainers/runtime-spec#233 which will have nullable values for other cgroup values as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions