gpt4 book ai didi

linux - 由于 cgroups 配置错误导致 docker 启动失败

转载 作者:太空宇宙 更新时间:2023-11-04 12:21:15 24 4
gpt4 key购买 nike

我正在尝试在 Centos-6-ish 操作系统上启动 docker。它因 cgroups 原因而失败。我相信挂载结构正确(docker 推荐 https://github.com/tianon/cgroupfs-mount/blob/master/cgroupfs-mount )所以我不清楚最终的错误消息。

thrashin(bash):/base/data/tmp# ./cgroups-mount

thrashin(bash):/base/data/tmp# grep cgroup /proc/mounts
cgroup /sys/fs/cgroup tmpfs rw,relatime,mode=755 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,relatime,blkio 0 0

thrashin(bash):/base/data/tmp# cat /proc/cgroups
#subsys_name hierarchy num_cgroups enabled
cpuset 4 1 1
blkio 5 1 1

thrashin(bash):/base/data/tmp# dockerd &
[1] 7201
thrashin(bash):/base/data/tmp# WARN[0000] could not change group /var/run/docker.sock to docker: group docker not found
INFO[0000] libcontainerd: new containerd process, pid: 7214
WARN[0000] containerd: low RLIMIT_NOFILE changing to max current=1024 max=4096
WARN[0001] unable to modify root key limit, number of containers could be limited by this quota: open /proc/sys/kernel/keys/root_maxkeys: no such file or directory
INFO[0001] [graphdriver] using prior storage driver: overlay2
INFO[0001] Graph migration to content-addressability took 0.00 seconds
WARN[0001] Your kernel does not support cgroup memory limit
WARN[0001] Unable to find cpu cgroup in mounts
WARN[0001] Your kernel does not support cgroup blkio throttle.read_bps_device
WARN[0001] Your kernel does not support cgroup blkio throttle.write_bps_device
WARN[0001] Your kernel does not support cgroup blkio throttle.read_iops_device
WARN[0001] Your kernel does not support cgroup blkio throttle.write_iops_device
WARN[0001] mountpoint for pids not found
Error starting daemon: Devices cgroup isn't mounted
^C
[1]+ Exit 1 dockerd

cgroup 设备已安装。是不是提示没有提供cpu子系统导致失败?如果是这样,我该如何提供?这是内核构建选项吗?

最佳答案

通过重建内核以提供 cpu cgroup 子系统解决了这个问题。

目前还不清楚这应该是解决问题的方法

Error starting daemon: Devices cgroup isn't mounted

鉴于还有其他cgroup警告,除了关于cpu子系统的警告。

关于linux - 由于 cgroups 配置错误导致 docker 启动失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45880144/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com