Skip to content

Commit bdea6f8

Browse files
committed
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 <[email protected]>
1 parent cd89720 commit bdea6f8

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

content/zh/docs/setup/production-environment/container-runtimes.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,36 @@ systemctl restart containerd
842842
# 重启 containerd
843843
systemctl restart containerd
844844
```
845+
{{% /tab %}}
846+
847+
{{% tab name="Windows/(PowerShell)" %}}
848+
849+
```powershell
850+
# (安装 containerd )
851+
# 下载 contianerd
852+
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
853+
cmd /c tar xvf .\containerd-1.4.0-beta.2-windows-amd64.tar.gz
854+
```
855+
856+
```powershell
857+
# 添加开机启动
858+
Copy-Item -Path ".\bin\" -Destination "C:\Program Files\containerd" -Recurse -Force
859+
cd C:\Program Files\containerd\
860+
.\containerd.exe config default | Out-File config.toml -Encoding ascii
861+
862+
# 检查配置文件主要看以下三个参数
863+
# sandbox_image 的镜像地址
864+
# CNI 的 bin_dir 和 conf_dir 路径
865+
Get-Content config.toml
866+
```
867+
868+
```powershell
869+
# containerd 注册服务
870+
.\containerd.exe --register-service
871+
# 启动 containerd
872+
Start-Service containerd
873+
```
874+
845875
{{% /tab %}}
846876
{{< /tabs >}}
847877

0 commit comments

Comments
 (0)