全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: 炒土豆丝

[疑问] Docker 安装出错求救!!!

[复制链接]
发表于 2022-4-3 02:34:58 | 显示全部楼层
curl -L get.docker.com|bash
 楼主| 发表于 2022-4-3 03:09:55 | 显示全部楼层
xayle 发表于 2022-4-3 02:34
别用服务启动, 手动命令行启动 /usr/bin/dockerd 查看报错信息

大佬帮忙看看

INFO[2022-04-02T15:09:23.065730932-04:00] Starting up                                 
INFO[2022-04-02T15:09:23.066422959-04:00] parsed scheme: "unix"                         module=grpc
INFO[2022-04-02T15:09:23.066499493-04:00] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2022-04-02T15:09:23.066568402-04:00] ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}  module=grpc
INFO[2022-04-02T15:09:23.066630799-04:00] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2022-04-02T15:09:23.067394151-04:00] parsed scheme: "unix"                         module=grpc
INFO[2022-04-02T15:09:23.067453523-04:00] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2022-04-02T15:09:23.067502294-04:00] ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}  module=grpc
INFO[2022-04-02T15:09:23.067536919-04:00] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2022-04-02T15:09:23.079010471-04:00] [graphdriver] using prior storage driver: overlay2
INFO[2022-04-02T15:09:23.080625430-04:00] Loading containers: start.                  
WARN[2022-04-02T15:09:23.089744464-04:00] Running modprobe bridge br_netfilter failed with message: modprobe: ERROR: could not insert 'bridge': Key was rejected by service
modprobe: ERROR: could not insert 'br_netfilter': Key was rejected by service
insmod /lib/modules/5.10.0-10-amd64/kernel/net/bridge/bridge.ko
insmod /lib/modules/5.10.0-10-amd64/kernel/net/bridge/bridge.ko
, error: exit status 1
WARN[2022-04-02T15:09:23.093554721-04:00] Running iptables --wait -t nat -L -n failed with message: `iptables v1.8.7 (nf_tables): Could not fetch rule set generation id: Invalid argument`, error: exit status 4
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables v1.8.7 (nf_tables): Could not fetch rule set generation id: Invalid argument
发表于 2022-4-3 03:19:52 | 显示全部楼层
本帖最后由 xayle 于 2022-4-3 03:24 编辑


https://forums.docker.com/t/failing-to-start-dockerd-failed-to-create-nat-chain-docker/78269

转换为传统模式

sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
 楼主| 发表于 2022-4-3 03:20:54 | 显示全部楼层
xayle 发表于 2022-4-3 03:19
系统不完整? unix socket 都不存在.

看来应该是系统的问题,Vir东京提前开机的小白鼠机。
发表于 2022-4-3 03:24:25 | 显示全部楼层
本帖最后由 xayle 于 2022-4-3 03:26 编辑
炒土豆丝 发表于 2022-4-3 03:20
看来应该是系统的问题,Vir东京提前开机的小白鼠机。


https://forums.docker.com/t/failing-to-start-dockerd-failed-to-create-nat-chain-docker/78269

转换为传统模式

sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy


执行后再重新启动服务测试
发表于 2022-4-3 03:29:03 | 显示全部楼层
我刚新装的 debian 11 x64 装 docker, 也没出现这个问题 奇怪.
发表于 2022-4-3 03:34:44 | 显示全部楼层
炒土豆丝 发表于 2022-4-3 03:20
看来应该是系统的问题,Vir东京提前开机的小白鼠机。

unix:///run/containerd/containerd.sock

这个提示未注册是容器服务没有启动成功.
 楼主| 发表于 2022-4-3 03:51:56 | 显示全部楼层
xayle 发表于 2022-4-3 03:34
unix:///run/containerd/containerd.sock

这个提示未注册是容器服务没有启动成功.

可以一启动就报错啊
 楼主| 发表于 2022-4-3 03:52:56 | 显示全部楼层
xayle 发表于 2022-4-3 03:29
我刚新装的 debian 11 x64 装 docker, 也没出现这个问题 奇怪.

大佬也是VIR东京么
发表于 2022-4-3 03:55:10 | 显示全部楼层
炒土豆丝 发表于 2022-4-3 03:52
大佬也是VIR东京么

不是, 下午买的其他家的机器, 才开通.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-9-8 01:52 , Processed in 0.061360 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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