野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 934|回复: 2

在鲁班猫1上安装不了docker

[复制链接]
回帖奖励 8 火花 回复本帖可获得 1 火花奖励! 每人限 1 次
发表于 2023-7-24 14:47:04 | 显示全部楼层 |阅读模式
如题,使用官方推荐的自动下载脚本安装的方式安装出现

  1. root@lubancat:~/locke# sh get-docker.sh --mirror Aliyun
  2. # Executing docker install script, commit: c2de0811708b6d9015ed1a2c80f02c9b70c8ce7b
  3. + sh -c apt-get update -qq >/dev/null
  4. + sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
  5. + sh -c install -m 0755 -d /etc/apt/keyrings
  6. + sh -c curl -fsSL "https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
  7. + sh -c chmod a+r /etc/apt/keyrings/docker.gpg
  8. + sh -c echo "deb [arch=arm64 signed-by=/etc/apt/keyrings/docker.gpg] https://mirrors.aliyun.com/docker-ce/linux/ubuntu jammy stable" > /etc/apt/sources.list.d/docker.list
  9. + sh -c apt-get update -qq >/dev/null
  10. + sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin >/dev/null
  11. E: Sub-process /usr/bin/dpkg returned an error code (1)
复制代码
查看日志【/var/log/syslog】
  1. Jul 24 14:43:48 lubancat dockerd[7509]: time="2023-07-24T14:43:48.754340242+08:00" level=info msg="Starting up"
  2. Jul 24 14:43:48 lubancat dockerd[7509]: time="2023-07-24T14:43:48.943170851+08:00" level=info msg="Loading containers: start."
  3. Jul 24 14:43:49 lubancat dockerd[7509]: time="2023-07-24T14:43:49.414415384+08:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
  4. Jul 24 14:43:49 lubancat dockerd[7509]: time="2023-07-24T14:43:49.453956414+08:00" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
  5. Jul 24 14:43:49 lubancat dockerd[7509]: failed to start daemon: Error initializing network controller: Error creating default "bridge" network: Failed to Setup IP tables: Unable to enable NAT rule:  (iptables failed: iptables --wait -t nat -I POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE: iptables v1.8.7 (nf_tables):  CHAIN_ADD failed (No such file or directory): chain POSTROUTING
  6. Jul 24 14:43:49 lubancat dockerd[7509]:  (exit status 4))
  7. Jul 24 14:43:49 lubancat systemd[1]: docker.service: Failed with result 'exit-code'.
  8. Jul 24 14:43:49 lubancat systemd[1]: Failed to start Docker Application Container Engine.
  9. Jul 24 14:43:51 lubancat dockerd[7571]: time="2023-07-24T14:43:51.815486799+08:00" level=info msg="Starting up"
  10. Jul 24 14:43:52 lubancat dockerd[7571]: time="2023-07-24T14:43:52.281238908+08:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
  11. Jul 24 14:43:52 lubancat dockerd[7571]: time="2023-07-24T14:43:52.282936132+08:00" level=info msg="Loading containers: start."
  12. Jul 24 14:43:52 lubancat dockerd[7571]: time="2023-07-24T14:43:52.660227429+08:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
  13. Jul 24 14:43:52 lubancat dockerd[7571]: time="2023-07-24T14:43:52.692712685+08:00" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
  14. Jul 24 14:43:52 lubancat dockerd[7571]: failed to start daemon: Error initializing network controller: Error creating default "bridge" network: Failed to Setup IP tables: Unable to enable NAT rule:  (iptables failed: iptables --wait -t nat -I POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE: iptables v1.8.7 (nf_tables):  CHAIN_ADD failed (No such file or directory): chain POSTROUTING
  15. Jul 24 14:43:52 lubancat dockerd[7571]:  (exit status 4))
  16. Jul 24 14:43:52 lubancat systemd[1]: docker.service: Failed with result 'exit-code'.
  17. Jul 24 14:43:52 lubancat systemd[1]: Failed to start Docker Application Container Engine.
  18. Jul 24 14:43:55 lubancat dockerd[7616]: time="2023-07-24T14:43:55.086056074+08:00" level=info msg="Starting up"
  19. Jul 24 14:43:55 lubancat dockerd[7616]: time="2023-07-24T14:43:55.203523653+08:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
  20. Jul 24 14:43:55 lubancat dockerd[7616]: time="2023-07-24T14:43:55.204795623+08:00" level=info msg="Loading containers: start."
  21. Jul 24 14:43:55 lubancat dockerd[7616]: time="2023-07-24T14:43:55.562091445+08:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
  22. Jul 24 14:43:55 lubancat dockerd[7616]: time="2023-07-24T14:43:55.609468463+08:00" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
  23. Jul 24 14:43:55 lubancat dockerd[7616]: failed to start daemon: Error initializing network controller: Error creating default "bridge" network: Failed to Setup IP tables: Unable to enable NAT rule:  (iptables failed: iptables --wait -t nat -I POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE: iptables v1.8.7 (nf_tables):  CHAIN_ADD failed (No such file or directory): chain POSTROUTING
  24. Jul 24 14:43:55 lubancat dockerd[7616]:  (exit status 4))
  25. Jul 24 14:43:55 lubancat dockerd[7616]: time="2023-07-24T14:43:55.610964727+08:00" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=plugins.moby
  26. Jul 24 14:43:55 lubancat systemd[1]: docker.service: Failed with result 'exit-code'.
  27. Jul 24 14:43:55 lubancat systemd[1]: Failed to start Docker Application Container Engine.
  28. Jul 24 14:43:57 lubancat systemd[1]: docker.service: Start request repeated too quickly.
  29. Jul 24 14:43:57 lubancat systemd[1]: docker.service: Failed with result 'exit-code'.
  30. Jul 24 14:43:57 lubancat systemd[1]: Failed to start Docker Application Container Engine.
  31. Jul 24 14:43:57 lubancat systemd[1]: docker.socket: Failed with result 'service-start-limit-hit'.
复制代码
请问一下鲁班猫的系统是否可以安装docker的?需要怎么安装才能使用?
回复

使用道具 举报

发表于 2023-7-25 10:59:30 | 显示全部楼层

回帖奖励 +1 火花

failed to start daemon: Error initializing network controller: Error creating default "bridge" network: Failed to Setup IP tables: Unable to enable NAT rule:  (iptables failed: iptables --wait -t nat -I POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE: iptables v1.8.7 (nf_tables):  CHAIN_ADD failed (No such file or directory): chain POSTROUTING
回复 支持 反对

使用道具 举报

发表于 2023-10-30 08:59:46 | 显示全部楼层
回复 支持 反对

使用道具 举报

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

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-4-28 18:19 , Processed in 0.065493 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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