我正在尝试通过gnurooot debian在我的android(6.0.1)上安装docker-ce,安装失败并显示“无权读取/ proc / cmdline”。 你能帮我解决一下吗? 这是我得到的错误
Sponsored by: _____ _ |_ _| ___ ___ ___ _| | _ _ ___ ___ | | | -_|| _|| . || . || | || || -_| |_| |___||_| |__,||___||_ ||_|_||___| |___| root@localhost:/# apt-get install docker-ce Reading package lists... Done Building dependency tree Reading state information... Done docker-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] y Setting up cgroupfs-mount (1.1) ... Failed to read /proc/cmdline. Ignoring: Permission denied Mounting cgroupfs hierarchy/usr/bin/cgroupfs-mount: 32: cd: can't cd to /sys/fs/cgroup invoke-rc.d: initscript cgroupfs-mount, action "start" failed. dpkg: error processing package cgroupfs-mount (--configure): subprocess installed post-installation script returned error exit status 2 Setting 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/cgroup invoke-rc.d: initscript docker, action "start" failed. dpkg: error processing package docker-ce (--configure): subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing: cgroupfs-mount docker-ce E: Sub-process /usr/bin/dpkg returned an error code (1) root@localhost:/#
答案 0 :(得分:0)
Docker使用cgroup和名称空间隔离容器。安装程序找不到/sys/fs/cgroup
。要么这在您的Debian chroot环境中不存在,要么您的内核对于cgroup支持而言太旧了(很可能在Android上)。
您是否存在/sys/
目录?
您正在运行什么内核? (uname -a
)。 Docker需要3.10或更高版本。