Rancher Server 设置
- Rancher 版本:2.12.2
- 安装选项 (Docker install/Helm Chart): Docker26.1.4
- 在线或离线部署:离线部署和在线部署都试过
**主机操作系统:CentOS7.9
docker login 登录私有仓库正常。
前期建立离线仓库过程均正常,但执行docker出错如下:
执行命令:
docker run -d --restart=unless-stopped --privileged
-p 80:80 -p 443:443
-v /etc/rancher/ssl:/etc/rancher/ssl
-e CATTLE_SYSTEM_DEFAULT_REGISTRY=xx.xx.xx.xx
-e CATTLE_SYSTEM_CATALOG=bundled
-e CATTLE_SYSTEM_DEFAULT_REGISTRY_CA_CERT=/etc/rancher/ssl/harbor.crt
rancher/rancher:v2.12.2
错误日志如下:
2025/10/11 00:05:54 [INFO] Listening on /tmp/log.sock
2025/10/11 00:05:54 [INFO] Waiting for k3s to start
2025/10/11 00:05:55 [INFO] Waiting for k3s to start
2025/10/11 00:05:56 [INFO] Waiting for k3s to start
2025/10/11 00:05:57 [INFO] Waiting for k3s to start
2025/10/11 00:05:58 [INFO] Waiting for k3s to start
2025/10/11 00:05:59 [INFO] Waiting for k3s to start
2025/10/11 00:06:00 [INFO] Waiting for k3s to start
2025/10/11 00:06:01 [INFO] Waiting for k3s to start
2025/10/11 00:06:02 [INFO] Waiting for server to become available: the server is currently unable to handle the request
2025/10/11 00:06:04 [INFO] Waiting for server to become available: the server is currently unable to handle the request
2025/10/11 00:06:06 [INFO] Waiting for server to become available: the server is currently unable to handle the request
2025/10/11 00:06:08 [INFO] Running in single server mode, will not peer connections
2025/10/11 00:06:08 [INFO] Scanning NodeTemplates in namespace: cattle-global-nt, group: nodetemplates.management.cattle.io
2025/10/11 00:06:08 [INFO] Scanning ClusterTemplates in namespace: cattle-global-data, group: clustertemplates.management.cattle.io
I1011 00:06:08.140306 43 warnings.go:110] “Warning: v1 Endpoints is deprecated in v1.33+; use discovery.k8s.io/v1 EndpointSlice”
I1011 00:06:08.141344 43 warnings.go:110] “Warning: v1 Endpoints is deprecated in v1.33+; use discovery.k8s.io/v1 EndpointSlice”
I1011 00:06:08.143128 43 warnings.go:110] “Warning: v1 Endpoints is deprecated in v1.33+; use discovery.k8s.io/v1 EndpointSlice”
……
……
2025/10/10 23:56:54 [INFO] RDPClient: Checking if dialer is built…
2025/10/10 23:56:54 [INFO] RDPClient: Dialer is not built yet, waiting 5 secs to re-check.
2025/10/10 23:56:59 [INFO] RDPClient: Checking if dialer is built…
2025/10/10 23:56:59 [INFO] RDPClient: Dialer is not built yet, waiting 5 secs to re-check.
访问页面显示:API Aggregation not ready.
但是,当我尝试在线部署rancher2.7.0时,rancher部署成功。