File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
content/zh/docs/setup/production-environment Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -842,6 +842,36 @@ systemctl restart containerd
842
842
# 重启 containerd
843
843
systemctl restart containerd
844
844
```
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
+
845
875
{{% /tab %}}
846
876
{{< /tabs >}}
847
877
You can’t perform that action at this time.
0 commit comments