首页 > 系统相关 >WSL Ubuntu 安装 minikube

WSL Ubuntu 安装 minikube

时间:2023-05-13 18:00:55浏览次数:39  
标签:minikube Windows sudo WSL apt https Ubuntu docker

一、安装 WSL Ubuntu

1、首先 Windows Microsoft Store 安装 Ubuntu。

2、解决报错:

1、未安装 WSL 支持

WslRegisterDistribution failed with error: 0x8007019e

Installing, this may take a few minutes...
Installation Failed!
Error: 0x8007019e
Press any key to continue...

解决方案:

打开 Windows PowerShell(管理员),输入如下命令后重启:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

2、WSL 内核未升级

WslRegisterDistribution failed with error: 0x800701bc

解决方案:

下载最新 WSL 安装包,直接运行安装。

3、没有开启虚拟化

WslRegisterDistribution failed with error: 0x80370102

解决方案:

打开控制面板->程序->启用或关闭Windows功能,勾选虚拟机平台选项,确定后重启电脑。

二、安装Docker

执行如下命令即可:

1 sudo apt update
2 sudo apt upgrade
3 sudo apt install apt-transport-https ca-certificates curl software-properties-common
4 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
5 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
6 sudo apt update
7 apt-cache policy docker-ce
8 sudo apt install docker-ce
9 sudo service docker start

三、minikube 简易安装 K8S

1、安装 minikube

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube start

2、解决报错

1、没有健康的环境

Exiting due to DRV_NOT_HEALTHY: Found driver(s) but none were healthy. See above for suggestions how to fix installed drivers.

解决方案:将当前用户添加进 Docker 组

sudo usermod -aG docker $USER && newgrp docker

2、源镜像被墙了,但有可替代源。

minikube was unable to download gcr.io/k8s-minikube/kicbase:v0.0.39, but successfully downloaded docker.io/kicbase/stable:v0.0.39 as a fallback image

解决方案:不用管

四、美化 Windows 的 CMD、PowerShell 界面

Windows Microsoft Store 搜索 Windows Terminal、PowerShell 进行安装即可

五、参考文献

https://blog.csdn.net/qq_37085158/article/details/125172803

https://blog.csdn.net/weixin_51617086/article/details/125235258

https://minikube.sigs.k8s.io/docs/start/

https://zhuanlan.zhihu.com/p/559328777

https://blog.csdn.net/weixin_45574790/article/details/121419814

标签:minikube,Windows,sudo,WSL,apt,https,Ubuntu,docker
From: https://www.cnblogs.com/M-Anonymous/p/17397833.html

相关文章

  • Ubuntu22.04 将EFI启动分区迁移到另一块硬盘
    机器上有两块硬盘,一块已经安装了Win10,另一块新装Ubuntu22.04,在新硬盘上划分分区的时候,有分出256M给BOOTEFI,但是安装的时候没注意,启动分区不知道怎的跑到Windows所在的硬盘上了记录一下将/boot/efi分区迁移至Ubuntu所在硬盘,并创建Grub的记录.预留的boot......
  • wsl中c++环境配置
    sudoapt-getinstallnodejssudoapt-getinstallnpmsudoapt-getinstallclangd-12Gettingstarted(llvm.org) ......
  • ubuntu20.4安装docker
    1.删除某软件,及其安装时自动安装的所有包sudoapt-getautoremovedockerdocker-cedocker-enginedocker.iocontainerdrunc2.删除docker其他没有没有卸载dpkg-l|grepdocker3.卸载没有删除的docker相关插件(结合自己电脑的实际情况)sudoapt-getautoremovedoc......
  • ubuntu20设置ssh远程连接
    1.安装openssh-server打开终端安装openssh-server软件包:sudoaptupdate#更新包sudoaptinstallopenssh-server#安装openssh-server2.查看ssh状态安装完成后,ssh服务默认启动了,可以通过下面的命令检查服务运行状态:sudosystemctlstatusssh3.防火墙开启ssh端口U......
  • vmware虚拟机安装ubuntu20.04
    准备:电脑安装vmvare虚拟机,ubuntu20.04.3镜像启动vmware虚拟机,选择文件->新建虚拟机 选择典型,点击下一步 至光盘映像选择配置页面,配置选择本机电脑存储的ubuntu镜像iso文件下一步,配置用户名及密码配置完成后,点击下一步,进入配置系统文件存放地址,配置完成后,点击下一步......
  • ubuntu 远程链接
    一、连接远程服务器sudoapt-getupdatesudoapt-getinstallopenssh-serversudops-e|grepssh#检查是否安装成功,如果正确启动,命令行中会显示sshdsudoapt-getinstallputtysudoputty#启动putty二、文件传输sudoapt-getinstallfilezillafilezilla#启动Tip......
  • # ubuntu18.04美化教程
    随记,这是在我美化完ubuntu18.04一段时间后,同学也想要美化教程,所以我凭着记忆来写的,教程中可能会有一些不足的地方,如果你遇到了问题可以在评论区指出,我看到后会尽量回答解决问题效果图如下参考文章Ubuntu18.04桌面美化全攻略_若水似风的博客-CSDN博客_ubuntu美化Ub......
  • Ubuntu系统下python模块graphviz运行报错:graphviz.backend.execute.ExecutableNotFoun
    代码中需要运行python模块graphviz,安装:pipinstallgraphviz 运行后报错:graphviz.backend.execute.ExecutableNotFound:failedtoexecutePosixPath('dot'),makesuretheGraphvizexecutablesareonyoursystems'PATH  报错的全部信息:Traceback(mostrecentc......
  • Ubuntu如何创建,删除目录和文件。如何把文件移动到对应的目录中
    一、创建,删除目录和文件命令touch+文件名:在当前目录创建一个文件命令rm-f+文件名:删除文件命令mkdir+目录名:创建一个新目录命令mrdir+目录名:删除指定目录二、如何移动文件到特定目录首先,得明白一些基本的命令,方便在各个目录中穿梭cd+目录名例如:进入到home目......
  • Ubuntu: 格式化USB How to format a USB flash drive?
    1-byDiskutility//simplestway youcanuseDisksit'sinstalledbydefaultandeasytouse. 1st:ClickontheDashicon2nd:Searchfor"Disks"3rd:ClickonDisks Theapplicationwillshowsup: 1st:ChoosetheUSBflashdrive2nd:Click......