Introduction to VPS and Web Technology Development

minikube centos安装运行

自由vps 运维
minikube是k8s的一个最小集群实现方式  可以实现单node运行,k8s编排的node内的docker版本跟k8s不能相差太大,如果以安装docker ,需要先升级docker版本

[root@localhost ~]# yum remove  docker docker-engine docker.io containerd runc
已加载插件:fastestmirror
参数 docker 没有匹配
参数 docker-engine 没有匹配
参数 docker.io 没有匹配
正在解决依赖关系
--> 正在检查事务
---> 软件包 containerd.io.x86_64.0.1.2.13-3.2.el7 将被 删除
--> 正在处理依赖关系 containerd.io >= 1.2.2-3,它被软件包 3:docker-ce-19.03.9-3.el7.x86_64 需要
--> 正在检查事务
---> 软件包 docker-ce.x86_64.3.19.03.9-3.el7 将被 删除
--> 解决依赖关系完成

依赖关系解决

================================================================================================================================================================================================================
 Package                                           架构                                       版本                                                  源                                                     大小
================================================================================================================================================================================================================
正在删除:
 containerd.io                                     x86_64                                     1.2.13-3.2.el7                                        @docker-ce-stable                                      97 M
为依赖而移除:
 docker-ce                                         x86_64                                     3:19.03.9-3.el7                                       @docker-ce-stable                                     102 M

事务概要
================================================================================================================================================================================================================
移除  1 软件包 (+1 依赖软件包)

安装大小:199 M
是否继续?[y/N]:y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在删除    : 3:docker-ce-19.03.9-3.el7.x86_64                                                                                                                                                            1/2
  正在删除    : containerd.io-1.2.13-3.2.el7.x86_64                                                                                                                                                         2/2
  验证中      : 3:docker-ce-19.03.9-3.el7.x86_64                                                                                                                                                            1/2
  验证中      : containerd.io-1.2.13-3.2.el7.x86_64                                                                                                                                                         2/2

删除:
  containerd.io.x86_64 0:1.2.13-3.2.el7

作为依赖被删除:
  docker-ce.x86_64 3:19.03.9-3.el7

完毕!

[root@localhost ~]# sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
已加载插件:fastestmirror
adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo
[root@localhost ~]# sudo yum install docker-ce docker-ce-cli containerd.io
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 containerd.io.x86_64.0.1.6.21-3.1.el7 将被 安装
--> 正在处理依赖关系 container-selinux >= 2:2.74,它被软件包 containerd.io-1.6.21-3.1.el7.x86_64 需要
---> 软件包 docker-ce.x86_64.3.24.0.2-1.el7 将被 安装
--> 正在处理依赖关系 docker-ce-rootless-extras,它被软件包 3:docker-ce-24.0.2-1.el7.x86_64 需要
---> 软件包 docker-ce-cli.x86_64.1.24.0.2-1.el7 将被 安装
--> 正在处理依赖关系 docker-buildx-plugin,它被软件包 1:docker-ce-cli-24.0.2-1.el7.x86_64 需要
--> 正在处理依赖关系 docker-compose-plugin,它被软件包 1:docker-ce-cli-24.0.2-1.el7.x86_64 需要
--> 正在检查事务
---> 软件包 container-selinux.noarch.2.2.119.2-1.911c772.el7_8 将被 安装
---> 软件包 docker-buildx-plugin.x86_64.0.0.10.5-1.el7 将被 安装
---> 软件包 docker-ce-rootless-extras.x86_64.0.24.0.2-1.el7 将被 安装
--> 正在处理依赖关系 fuse-overlayfs >= 0.7,它被软件包 docker-ce-rootless-extras-24.0.2-1.el7.x86_64 需要
--> 正在处理依赖关系 slirp4netns >= 0.4,它被软件包 docker-ce-rootless-extras-24.0.2-1.el7.x86_64 需要
---> 软件包 docker-compose-plugin.x86_64.0.2.18.1-1.el7 将被 安装
--> 正在检查事务
---> 软件包 fuse-overlayfs.x86_64.0.0.7.2-6.el7_8 将被 安装
--> 正在处理依赖关系 libfuse3.so.3(FUSE_3.2)(64bit),它被软件包 fuse-overlayfs-0.7.2-6.el7_8.x86_64 需要
--> 正在处理依赖关系 libfuse3.so.3(FUSE_3.0)(64bit),它被软件包 fuse-overlayfs-0.7.2-6.el7_8.x86_64 需要
--> 正在处理依赖关系 libfuse3.so.3()(64bit),它被软件包 fuse-overlayfs-0.7.2-6.el7_8.x86_64 需要
---> 软件包 slirp4netns.x86_64.0.0.4.3-4.el7_8 将被 安装
--> 正在检查事务
---> 软件包 fuse3-libs.x86_64.0.3.6.1-4.el7 将被 安装
--> 解决依赖关系完成

依赖关系解决

================================================================================================================================================================================================================
 Package                                                  架构                                  版本                                                      源                                               大小
================================================================================================================================================================================================================
正在安装:
 containerd.io                                            x86_64                                1.6.21-3.1.el7                                            docker-ce-stable                                 34 M
 docker-ce                                                x86_64                                3:24.0.2-1.el7                                            docker-ce-stable                                 24 M
 docker-ce-cli                                            x86_64                                1:24.0.2-1.el7                                            docker-ce-stable                                 13 M
为依赖而安装:
 container-selinux                                        noarch                                2:2.119.2-1.911c772.el7_8                                 extras                                           40 k
 docker-buildx-plugin                                     x86_64                                0.10.5-1.el7                                              docker-ce-stable                                 12 M
 docker-ce-rootless-extras                                x86_64                                24.0.2-1.el7                                              docker-ce-stable                                9.1 M
 docker-compose-plugin                                    x86_64                                2.18.1-1.el7                                              docker-ce-stable                                 12 M
 fuse-overlayfs                                           x86_64                                0.7.2-6.el7_8                                             extras                                           54 k
 fuse3-libs                                               x86_64                                3.6.1-4.el7                                               extras                                           82 k
 slirp4netns                                              x86_64                                0.4.3-4.el7_8                                             extras                                           81 k

事务概要
================================================================================================================================================================================================================
安装  3 软件包 (+7 依赖软件包)

总下载量:105 M
安装大小:372 M
Is this ok [y/d/N]: y

 minikube start --force
* Centos 7.9.2009 上的 minikube v1.30.1
! minikube skips various validations when --force is supplied; this may lead to unexpected behavior
* 自动选择 docker 驱动。其他选项:ssh, none
* The "docker" driver should not be used with root privileges. If you wish to continue as root, use --force.
* If you are running minikube within a VM, consider using --driver=none:
*   https://minikube.sigs.k8s.io/docs/reference/drivers/none/
* Using Docker driver with root privileges
* Starting control plane node minikube in cluster minikube
* Pulling base image ...
* Downloading Kubernetes v1.26.3 preload ...
    > preloaded-images-k8s-v18-v1...:  43.94 MiB / 397.02 MiB  11.07% 89.05 KiB


[root@localhost ~]# minikube start --driver=docker --force
* Centos 7.9.2009 上的 minikube v1.30.1
! minikube skips various validations when --force is supplied; this may lead to unexpected behavior
* 根据现有的配置文件使用 docker 驱动程序
* The "docker" driver should not be used with root privileges. If you wish to continue as root, use --force.
* If you are running minikube within a VM, consider using --driver=none:
*   https://minikube.sigs.k8s.io/docs/reference/drivers/none/
* Tip: To remove this root owned cluster, run: sudo minikube delete
* Starting control plane node minikube in cluster minikube
* Pulling base image ...
* Updating the running docker "minikube" container ...
* 正在 Docker 23.0.2 中准备 Kubernetes v1.26.3…
X Unable to load cached images: loading cached images: stat /root/.minikube/cache/images/amd64/gcr.io/k8s-minikube/storage-provisioner_v5: no such file or directory
  - Generating certificates and keys ...
  - Booting up control plane ...
  - 配置 RBAC 规则 ...
* Configuring bridge CNI (Container Networking Interface) ...
  - Using image gcr.io/k8s-minikube/storage-provisioner:v5
* Verifying Kubernetes components...
* Enabled addons: default-storageclass, storage-provisioner
* kubectl not found. If you need it, try: 'minikube kubectl -- get pods -A'
* Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default


使用chatGPT寻求答案
标签: 暂无标签

免责声明:

本站提供的资源,都来自网络,版权争议与本站无关,所有内容及软件的文章仅限用于学习和研究目的。不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负,我们不保证内容的长久可用性,通过使用本站内容随之而来的风险与本站无关,您必须在下载后的24个小时之内,从您的电脑/手机中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。侵删请致信E-mail:master@freevpsweb.com

同类推荐
评论列表