一、安装 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: 0x8007019epress any key to continue...
pg麻将胡了网赌人口的解决方案:
打开 windows powershell(管理员),输入如下命令后重启:
enable-windowsoptionalfeature -online -featurename microsoft-windows-subsystem-linux
2、wsl 内核未升级
wslregisterdistribution failed with error: 0x800701bc
pg麻将胡了网赌人口的解决方案:
下载最新 wsl 安装包,直接运行安装。
3、没有开启虚拟化
wslregisterdistribution failed with error: 0x80370102
pg麻将胡了网赌人口的解决方案:
打开控制面板->程序->启用或关闭windows功能,勾选虚拟机平台选项,确定后重启电脑。
二、安装docker
执行如下命令即可:
1 sudo apt update2 sudo apt upgrade3 sudo apt install apt-transport-https ca-certificates curl software-properties-common4 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 update7 apt-cache policy docker-ce8 sudo apt install docker-ce9 sudo service docker start
三、minikube 简易安装 k8s
1、安装 minikube
curl -lo https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64sudo install minikube-linux-amd64 /usr/local/bin/minikubeminikube 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.
pg麻将胡了网赌人口的解决方案:将当前用户添加进 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
pg麻将胡了网赌人口的解决方案:不用管
四、美化 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
标签:
