window 使用wsl 安装docker 和 k8s

107 阅读12分钟

1 安装 Chocolatey 可以点击这个链接 详情

首先用管理员账户 右键 powershell 安装

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

2 安装wsl2 和docker 点击这个链接看 相关  k8s 部分看下

3 k8s 安装部分建议看这个 链接 ,

如果在linux 环境下  就 执行.sh后缀. powershell需要安装git

4 然后 就可以 在 终端跑k8s命令