mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
f112d83776
Even if cpu cgroup controller is enabled it's still possible that cpu.shares doesn't exist. This is the case when the kernel config has CONFIG_CGROUP_SCHED enabled but CONFIG_FAIR_GROUP_SCHED disabled. Then docker fails to start containers even --cpu-shares isn't specified. $ sudo docker run -i -t ubuntu:14.04 Error response from daemon: Cannot start container 5600ae87eb9d0eca49f6bcee012247d6b4beb49c426d6cf17e2456279f9311f6: [8] System error: open /sys/fs/cgroup/cpu/docker/5600ae87eb9d0eca49f6bcee012247d6b4beb49c426d6cf17e2456279f9311f6/cpu.shares: no such file or directory Signed-off-by: Zefan Li <lizefan@huawei.com>