RKE 安装k8s,docker报错,rke版本是1.3.15.
Docker 版本:20.10.5
我是离线部署 Kubernetes 版本: 1.24(rke默认的版本)
主机操作系统:
Debian11
问题描述:
重现步骤:
ssh没有问题,
/etc/ssh/sshd_config 也设置了 AllowTcpForwarding yes
但是执行的时候报错:
root@harbor:~/rancher# rke up
INFO[0000] Running RKE version: v1.3.15
INFO[0000] Initiating Kubernetes cluster
INFO[0000] [certificates] GenerateServingCertificate is disabled, checking if there are unused kubelet certificates
INFO[0000] [certificates] Generating admin certificates and kubeconfig
INFO[0000] Successfully Deployed state file at [./cluster.rkestate]
INFO[0000] Building Kubernetes cluster
INFO[0000] [dialer] Setup tunnel for host [10.106.106.86]
INFO[0000] [dialer] Setup tunnel for host [10.106.106.90]
INFO[0000] [dialer] Setup tunnel for host [10.106.106.91]
INFO[0000] [dialer] Setup tunnel for host [10.106.106.87]
INFO[0000] [dialer] Setup tunnel for host [10.106.106.88]
INFO[0000] [dialer] Setup tunnel for host [10.106.106.89]
WARN[0000] Failed to set up SSH tunneling for host [10.106.106.86]: Can’t retrieve Docker Info: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info”: net/http: HTTP/1.x transport connection broken: malformed HTTP response “\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00”.
- Are you trying to connect to a TLS-enabled daemon without TLS?
WARN[0000] Failed to set up SSH tunneling for host [10.106.106.90]: Can’t retrieve Docker Info: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info”: net/http: HTTP/1.x transport connection broken: malformed HTTP response “\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00”. - Are you trying to connect to a TLS-enabled daemon without TLS?
WARN[0000] Failed to set up SSH tunneling for host [10.106.106.88]: Can’t retrieve Docker Info: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info”: net/http: HTTP/1.x transport connection broken: malformed HTTP response “\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00”. - Are you trying to connect to a TLS-enabled daemon without TLS?
WARN[0000] Failed to set up SSH tunneling for host [10.106.106.89]: Can’t retrieve Docker Info: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info”: net/http: HTTP/1.x transport connection broken: malformed HTTP response “\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00”. - Are you trying to connect to a TLS-enabled daemon without TLS?
一致没搞明白为什么。主机上的docker也是正常的。docker info,docker ps 显示都正常。
报错主要是:
Can’t retrieve Docker Info: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info”: net/http: HTTP/1.x transport connection broken: malformed HTTP response “\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00
不明白是为什么
日志