Skip to content

Commit 8cb0137

Browse files
committed
Updating containerd on Windows install steps to add Defender Exclusion
1 parent 3c22c23 commit 8cb0137

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

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

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,30 +219,39 @@ sudo systemctl restart containerd
219219
```
220220
{{% /tab %}}
221221
{{% 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+
222227
```powershell
223228
# (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
227232
```
228233

229234
```powershell
230-
# extract and configure
235+
# Extract and configure
231236
Copy-Item -Path ".\bin\" -Destination "$Env:ProgramFiles\containerd" -Recurse -Force
232237
cd $Env:ProgramFiles\containerd\
233238
.\containerd.exe config default | Out-File config.toml -Encoding ascii
234239
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)
237242
# - cni bin_dir and conf_dir locations
238243
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"
239247
```
240248

241249
```powershell
242-
# start containerd
250+
# Start containerd
243251
.\containerd.exe --register-service
244252
Start-Service containerd
245253
```
254+
246255
{{% /tab %}}
247256
{{< /tabs >}}
248257

0 commit comments

Comments
 (0)