Docker 部署rancher2.5

rancher 版本2.5.17
安装命令ocker run -d --restart=unless-stopped -p 80:80 -p 443:443 --privileged -v /opt/rancher/data:/var/lib/rancher --name rancher rancher/rancher:v2.5.17
进入容器查看出现这个
image Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image “docker.io/rancher/pause:3.1”: failed to pull image “docker.io/rancher/pause:3.1”: failed to pull and unpack image “docker.io/rancher/pause:3.1”: failed to resolve reference “docker.io/rancher/pause:3.1”: failed to do request: Head “https://registry-1.docker.io/v2/rancher/pause/manifests/3.1”: read tcp 172.17.0.2:45526->52.86.153.188:443: read: connection reset by peer
Warning FailedCreatePodSandBox 22m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image “docker.io/rancher/pause:3.1”: failed to pull image “docker.io/rancher/pause:3.1”: failed to pull and unpack image “docker.io/rancher/pause:3.1”: failed to resolve reference “docker.io/rancher/pause:3.1”: failed to do request: Head “https://registry-1.docker.io/v2/rancher/pause/manifests/3.1”: read tcp 172.17.0.2:33048->44.194.97.147:443: read: connection reset by peer
Warning FailedCreatePodSandBox 21m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image “docker.io/rancher/pause:3.1”: failed to pull image “docker.io/rancher/pause:3.1”: failed to pull and unpack image “docker.io/rancher/pause:3.1”: failed to resolve reference “docker.io/rancher/pause:3.1”: failed to do request: Head “https://registry-1.docker.io/v2/rancher/pause/manifests/3.1”: read tcp 172.17.0.2:46946->34.196.179.203:443: read: connection reset by peer
Warning FailedCreatePodSandBox 18m (x3 over 20m) kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image “docker.io/rancher/pause:3.1”: failed to pull image “docker.io/rancher/pause:3.1”: failed to pull and unpack image “docker.io/rancher/pause:3.1”: failed to resolve reference “docker.io/rancher/pause:3.1”: failed to do request: Head “https://registry-1.docker.io/v2/rancher/pause/manifests/3.1”: dial tcp 104.244.43.182:443: connect: connection refused
Warning FailedCreatePodSandBox 18m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image “docker.io/rancher/pause:3.1”: failed to pull image “docker.io/rancher/pause:3.1”: failed to pull and unpack image “docker.io/rancher/pause:3.1”: failed to resolve reference “docker.io/rancher/pause:3.1”: failed to do request: Head “https://registry-1.docker.io/v2/rancher/pause/manifests/3.1”: read tcp 172.17.0.2:52736->52.71.123.245:443: read: connection reset by peer
Warning FailedCreatePodSandBox 17m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image “docker.io/rancher/pause:3.1”: failed to pull image “docker.io/rancher/pause:3.1”: failed to pull and unpack image “docker.io/rancher/pause:3.1”: failed to resolve reference “docker.io/rancher/pause:3.1”: failed to do request: Head “https://registry-1.docker.io/v2/rancher/pause/manifests/3.1”: dial tcp 59.188.250.54:443: connect: connection refused
Warning FailedCreatePodSandBox 16m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image “docker.io/rancher/pause:3.1”: failed to pull image “docker.io/rancher/pause:3.1”: failed to pull and unpack image “docker.io/rancher/pause:3.1”: failed to resolve reference “docker.io/rancher/pause:3.1”: failed to do request: Head “https://registry-1.docker.io/v2/rancher/pause/manifests/3.1”: read tcp 172.17.0.2:33060->52.207.17.206:443: read: connection reset by peer
Warning FailedCreatePodSandBox 12m (x4 over 15m) kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image “docker.io/rancher/pause:3.1”: failed to pull image “docker.io/rancher/pause:3.1”: failed to pull and unpack image “docker.io/rancher/pause:3.1”: failed to resolve reference “docker.io/rancher/pause:3.1”: failed to do request: Head “https://registry-1.docker.io/v2/rancher/pause/manifests/3.1”: dial tcp 174.37.54.20:443: connect: connection refused
Warning FailedCreatePodSandBox 12m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image “docker.io/rancher/pause:3.1”: failed to pull image “docker.io/rancher/pause:3.1”: failed to pull and unpack image “docker.io/rancher/pause:3.1”: failed to resolve reference “docker.io/rancher/pause:3.1”: failed to do request: Head “https://registry-1.docker.io/v2/rancher/pause/manifests/3.1”: read tcp 172.17.0.2:56660->34.206.220.186:443: read: connection reset by peer
Warning FailedCreatePodSandBox 10m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image “docker.io/rancher/pause:3.1”: failed to pull image “docker.io/rancher/pause:3.1”: failed to pull and unpack image “docker.io/rancher/pause:3.1”: failed to resolve reference “docker.io/rancher/pause:3.1”: failed to do request: Head “https://registry-1.docker.io/v2/rancher/pause/manifests/3.1”: dial tcp 31.13.95.34:443: connect: connection refused
Warning FailedCreatePodSandBox 3m56s kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image “docker.io/rancher/pause:3.1”: failed to pull image “docker.io/rancher/pause:3.1”: failed to pull and unpack image “docker.io/rancher/pause:3.1”: failed to resolve reference “docker.io/rancher/pause:3.1”: failed to do request: Head “https://registry-1.docker.io/v2/rancher/pause/manifests/3.1”: dial tcp 108.160.162.115:443: connect: connection refused
Warning FailedCreatePodSandBox 2m11s (x13 over 11m) kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image “docker.io/rancher/pause:3.1”: failed to pull image “docker.io/rancher/pause:3.1”: failed to pull and unpack image “docker.io/rancher/pause:3.1”: failed to resolve reference “docker.io/rancher/pause:3.1”: failed to do request: Head “https://registry-1.docker.io/v2/rancher/pause/manifests/3.1”: read tcp 172.17.0.2:35258->13.216.29.98:443: r

https://www.suse.com/lifecycle/#suse-rancher-prime 根据SUSE官方有关Rancher的生命周期 2.5很早就EOL了,社区不会提供技术支持,谢谢您的理解。

也可以参考:Docker run 启动 rancher,由于映射数据目录导致 rancher/mirrored-pause 无法拉取 - #2,来自 ksd

成功后没得kube-proxy 这个服务嘛


只有这几个服务

不知道你发的是哪个菜单的截图…… 下次最好写清楚上下文

这是在切换仪表板上面看的,切换到rancherui 上面就没得具体跑的服务

我只想问怎么没得kubectl-proxy 这个服务恩

有 kube-proxy

但是我查看没得啊,命名空间也选择了所有

是按这种方式部署的

你是在哪个菜单看的?


这里


ji就跳到这个界面

@ksd 大佬帮忙看看

你这是 docker run 运行的 rancher,你找 kube-proxy 有啥用

他不是内置了一个k3s 嘛

现在我在ranxher 上部署了一个nginx ,使用nodeport 的方式暴露出来,访问不到。


所以确定是不是没得这个服务的原因,端口也没得在宿主机上生成

docker run 运行的 rancher 是封装在容器之内的,你从外面肯定访问不了

我知道是封装在容器内的,但是我进容器去查看这个服务也没得啊。