根据docker搭建rancher

该博客介绍了如何通过dashboard创建并登录远程机器,然后详细步骤演示了如何在该机器上安装Docker,并启动Docker服务。接着,博主拉取并运行Rancher的最新镜像,成功部署Rancher管理平台,用于集群管理。
摘要由CSDN通过智能技术生成


一、先在dashboard上创建机器

示例:pandas 是基于NumPy 的一种工具,该工具是为了解决数据分析任务而创建的。

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
然后点击创建实例

二、登录机器

1.引入库

[root@host-192-168-0-65 ~]# ssh root@192.168.0.65
The authenticity of host '192.168.0.65 (192.168.0.65)' can't be established.
ECDSA key fingerprint is SHA256:UCKaEWbMMQu9j9fr7NsnZpjh0j2+KZvEVcqjTKdwLdE.
ECDSA key fingerprint is MD5:98:08:24:9d:dd:c7:5e:ac:d1:31:66:59:e8:b0:b2:68.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.65' (ECDSA) to the list of known hosts.
root@192.168.0.65's password:
[root@host-192-168-0-65 ~]# curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

然后系统开启docker

[root@host-192-168-0-65 ~]# systemctl start docker

然后查看docker信息

[root@host-192-168-0-65 ~]# docker info

然后根据docker搭建rancher

[root@host-192-168-0-65 ~]# docker run --privileged -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
Unable to find image 'rancher/rancher:latest' locally
latest: Pulling from rancher/rancher
af637d9f9908: Pull complete
f9224574abce: Pull complete
ebae3352c76e: Pull complete
7b21d0842057: Pull complete
88a4b8d1c9ea: Pull complete
068e40008a4a: Pull complete
af8d478ed359: Pull complete
0570bed5c15a: Pull complete
f7dfd304c929: Pull complete
e0f5d341d113: Pull complete
bd89a58c597d: Pull complete
c03c718eef46: Pull complete
5e1f456cdbf8: Pull complete
e55dca76e75f: Pull complete
c9a821480bc3: Pull complete
c6e3491b680d: Pull complete
9d7c10a11f0f: Pull complete
Digest: sha256:51658639bf2b28f4796e7daa04b0434e29fcf69ce062bf649462be77ae76cd2c
Status: Downloaded newer image for rancher/rancher:latest
6e7e263ca77c297bc598656b5eb60545b4f7b0182060d72efb1a21ce11760d08

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值