File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed
content/en/docs/setup/production-environment Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -219,30 +219,39 @@ sudo systemctl restart containerd
219
219
```
220
220
{{% /tab %}}
221
221
{{% tab name="Windows (PowerShell)" %}}
222
+
223
+ <br />
224
+ Start a Powershell session, set ` $Version ` to the desired version (ex: ` $Version=1.4.3 ` ), and then run the following commands:
225
+ <br />
226
+
222
227
``` powershell
223
228
# (Install containerd)
224
- # download containerd
225
- cmd /c curl -OL https://github.com/containerd/containerd/releases/download/v1.4.1 /containerd-1.4.1 -windows-amd64.tar.gz
226
- cmd /c tar xvf .\containerd-1.4.1 -windows-amd64.tar.gz
229
+ # Download containerd
230
+ curl.exe -L https://github.com/containerd/containerd/releases/download/v$Version /containerd-$Version-windows-amd64.tar.gz -o containerd -windows-amd64.tar.gz
231
+ tar.exe xvf .\containerd-windows-amd64.tar.gz
227
232
```
228
233
229
234
``` powershell
230
- # extract and configure
235
+ # Extract and configure
231
236
Copy-Item -Path ".\bin\" -Destination "$Env:ProgramFiles\containerd" -Recurse -Force
232
237
cd $Env:ProgramFiles\containerd\
233
238
.\containerd.exe config default | Out-File config.toml -Encoding ascii
234
239
235
- # review the configuration. depending on setup you may want to adjust:
236
- # - the sandbox_image (kubernetes pause image)
240
+ # Review the configuration. Depending on setup you may want to adjust:
241
+ # - the sandbox_image (Kubernetes pause image)
237
242
# - cni bin_dir and conf_dir locations
238
243
Get-Content config.toml
244
+
245
+ # (Optional - but highly recommended) Exclude containerd form Windows Defender Scans
246
+ Add-MpPreference -ExclusionProcess "$Env:ProgramFiles\containerd\containerd.exe"
239
247
```
240
248
241
249
``` powershell
242
- # start containerd
250
+ # Start containerd
243
251
.\containerd.exe --register-service
244
252
Start-Service containerd
245
253
```
254
+
246
255
{{% /tab %}}
247
256
{{< /tabs >}}
248
257
You can’t perform that action at this time.
0 commit comments