Update container-runtimes.md
Supplement the Chinese version of containerd installed by windows when running the container of community production environment Signed-off-by: Yuaninga <1846225041@qq.com>
This commit is contained in:
parent
cd897207ec
commit
bdea6f8738
|
|
@ -842,6 +842,36 @@ systemctl restart containerd
|
|||
# 重启 containerd
|
||||
systemctl restart containerd
|
||||
```
|
||||
{{% /tab %}}
|
||||
|
||||
{{% tab name="Windows/(PowerShell)" %}}
|
||||
|
||||
```powershell
|
||||
# (安装 containerd )
|
||||
# 下载 contianerd
|
||||
cmd /c curl -OL https://github.com/containerd/containerd/releases/download/v1.4.0-beta.2/containerd-1.4.0-beta.2-windows-amd64.tar.gz
|
||||
cmd /c tar xvf .\containerd-1.4.0-beta.2-windows-amd64.tar.gz
|
||||
```
|
||||
|
||||
```powershell
|
||||
# 添加开机启动
|
||||
Copy-Item -Path ".\bin\" -Destination "C:\Program Files\containerd" -Recurse -Force
|
||||
cd C:\Program Files\containerd\
|
||||
.\containerd.exe config default | Out-File config.toml -Encoding ascii
|
||||
|
||||
# 检查配置文件主要看以下三个参数
|
||||
# sandbox_image 的镜像地址
|
||||
# CNI 的 bin_dir 和 conf_dir 路径
|
||||
Get-Content config.toml
|
||||
```
|
||||
|
||||
```powershell
|
||||
# containerd 注册服务
|
||||
.\containerd.exe --register-service
|
||||
# 启动 containerd
|
||||
Start-Service containerd
|
||||
```
|
||||
|
||||
{{% /tab %}}
|
||||
{{< /tabs >}}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue