Amazon linux2 压缩包形式安装docker20.10

步骤1:

参考链接:

离线安装【DOCKER 20.10】_docker离线安装社区版(docker-20.10-CSDN博客

步骤2:

安装完成后,无法启动报错如下:

INFO[2024-08-01T06:28:26.747337783Z] parsed scheme: "unix" module=grpc INFO[2024-08-01T06:28:26.747373103Z] scheme "unix" not registered, fallback to default scheme module=grpc INFO[2024-08-01T06:28:26.747483597Z] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>} module=grpc INFO[2024-08-01T06:28:26.747514231Z] ClientConn switching balancer to "pick_first" module=grpc INFO[2024-08-01T06:28:26.760871600Z] [graphdriver] using prior storage driver: overlay2 INFO[2024-08-01T06:28:26.763611159Z] Loading containers: start. WARN[2024-08-01T06:28:26.763835427Z] Failed to find iptables: exec: "iptables": executable file not found in $PATH INFO[2024-08-01T06:28:26.765657443Z] stopping event stream following graceful shutdown error="<nil>" module=libcontainerd namespace=moby INFO[2024-08-01T06:28:26.766053071Z] stopping healthcheck following graceful shutdown module=libcontainerd INFO[2024-08-01T06:28:26.766166616Z] stopping event stream following graceful shutdown error="context canceled" module=libcontainerd namespace=plugins.moby failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: Iptables not found

原因:

使用如下命令查找后,本机无iptable

解决方案:

sudo yum update -y

sudo yum install -y iptables-services

sudo systemctl start iptables

sudo systemctl enable iptables

sudo systemctl status iptables

安装完成后:docker最后启动成功。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值