Toybrick

RK3399安装docker时报错---求解

firstman

新手上路

积分
45
楼主
发表于 2020-3-1 18:25:16    查看: 7050|回复: 1 | [复制链接]    打印 | 只看该作者
版主:
   我在RK3399板子上安装docker时出现错误,无法安装,用journalctl -xe指令查询错误信息时提示如下:提示内核不支持,可能与iptables有关。针对这个问题,如何解决呢?
安装docker时报错如下:
  update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
diff: /var/lib/apparmor/profiles/.apparmor.md5sums: No such file or directory
Setting up rsync (3.1.1-3ubuntu1.3) ...
Setting up aufs-tools (1:3.2+20130722-1.1ubuntu1) ...
Setting up cgroupfs-mount (1.2) ...
Setting up containerd.io (1.2.10-3) ...
Setting up docker-ce-cli (5:19.03.6~3-0~ubuntu-xenial) ...
Setting up docker-ce (5:19.03.6~3-0~ubuntu-xenial) ...
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Sun 2020-03-01 18:05:11 CST; 30ms ago
     Docs: https://docs.docker.com
  Process: 6374 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 6374 (code=exited, status=1/FAILURE)

Mar 01 18:05:11 yishi-guard systemd[1]: Failed to start Docker Application Container Engine.
Mar 01 18:05:11 yishi-guard systemd[1]: docker.service: Unit entered failed state.
Mar 01 18:05:11 yishi-guard systemd[1]: docker.service: Failed with result 'exit-code'.
dpkg: error processing package docker-ce (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up liberror-perl (0.17-1.2) ...
Setting up git-man (1:2.7.4-0ubuntu1.7) ...
Setting up git (1:2.7.4-0ubuntu1.7) ...
Setting up libltdl7:arm64 (2.4.6-0.1) ...
Setting up patch (2.7.5-1ubuntu0.16.04.2) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
Processing triggers for systemd (229-4ubuntu21.27) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)

用journalctl -xe指令查询错误信息时提示如下:
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.493971040+08:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" modul
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.494374701+08:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/container
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.494646530+08:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.501362644+08:00" level=info msg="parsed scheme: \"unix\"" module=grpc
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.501626890+08:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" modul
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.501960552+08:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/container
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.502197966+08:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.537098059+08:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.550370414+08:00" level=warning msg="Your kernel does not support swap memory limit"
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.550577786+08:00" level=warning msg="Your kernel does not support kernel memory limit"
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.550627077+08:00" level=warning msg="Your kernel does not support kernel memory TCP limit"
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.550671702+08:00" level=warning msg="Your kernel does not support cgroup rt period"
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.550745492+08:00" level=warning msg="Your kernel does not support cgroup rt runtime"
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.550793617+08:00" level=warning msg="Unable to find blkio cgroup in mounts"
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.550843783+08:00" level=warning msg="mountpoint for pids not found"
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.552028224+08:00" level=info msg="Loading containers: start."
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.571869862+08:00" level=warning msg="Running modprobe bridge br_netfilter failed with message: modp
Mar 01 18:05:20 yishi-guard dockerd[6669]: time="2020-03-01T18:05:20.619052908+08:00" level=warning msg="Running iptables --wait -t nat -L -n failed with message: `ipt
Mar 01 18:05:21 yishi-guard dockerd[6669]: failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT cha
Mar 01 18:05:21 yishi-guard dockerd[6669]: Perhaps iptables or your kernel needs to be upgraded.
Mar 01 18:05:21 yishi-guard dockerd[6669]:  (exit status 3)
Mar 01 18:05:21 yishi-guard systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Mar 01 18:05:21 yishi-guard systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: Unit docker.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit docker.service has failed.

回复

使用道具 举报

wbf420

注册会员

积分
198
沙发
发表于 2020-4-21 14:48:59 | 只看该作者
我也遇到docker无法创建容器的问题,题主解决了吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表