gpt4 book ai didi

android - android 上的 docker(gnuroot debian)

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:18:06 24 4
gpt4 key购买 nike

我正在尝试通过 gnurooot debian 在我的 android (6.0.1) 上安装 docker-ce,安装失败并显示“没有读取/proc/cmdline 的权限”。你能帮我修一下吗?这是我得到的错误

Sponsored by: _____                   _|_   _| ___  ___  ___  _| | _ _  ___  ___  | |  | -_||  _|| . || . || | ||   || -_|  |_|  |___||_|  |__,||___||_  ||_|_||___|                           |___|root@localhost:/# apt-get install docker-ceReading package lists... DoneBuilding dependency treeReading state information... Donedocker-ce is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.2 not fully installed or removed.After this operation, 0 B of additional disk space will be used.Do you want to continue? [Y/n] ySetting up cgroupfs-mount (1.1) ...Failed to read /proc/cmdline. Ignoring: Permission deniedMounting cgroupfs hierarchy/usr/bin/cgroupfs-mount: 32: cd: can't cd to /sys/fs/cgroupinvoke-rc.d: initscript cgroupfs-mount, action "start" failed.dpkg: error processing package cgroupfs-mount (--configure): subprocess installed post-installation script returned error exit status 2Setting up docker-ce (17.09.1~ce-0~debian) ...Failed to read /proc/cmdline. Ignoring: Permission denied/etc/init.d/docker: 73: cd: can't cd to /sys/fs/cgroupinvoke-rc.d: initscript docker, action "start" failed.dpkg: error processing package docker-ce (--configure): subprocess installed post-installation script returned error exit status 2Errors were encountered while processing: cgroupfs-mount docker-ceE: Sub-process /usr/bin/dpkg returned an error code (1)root@localhost:/#

最佳答案

Docker 使用 cgroup 和命名空间隔离容器。安装程序找不到 /sys/fs/cgroup。这要么不存在于您的 Debian chroot 环境中,要么您的内核太旧而无法支持 cgroup(很可能在 Android 上)。

  • /sys/ 目录是否存在?

  • 你运行的是什么内核? (uname -a)。 Docker 需要 3.10 或更高版本。

关于android - android 上的 docker(gnuroot debian),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47970066/

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