mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Fix the containerd service check
This commit is contained in:
parent
ac5f05b374
commit
bc3f6c1be9
@ -1608,7 +1608,7 @@ function Configure_Containerd {
|
||||
# Register if needed and start containerd service.
|
||||
function Start_Containerd {
|
||||
# Do the registration only if the containerd service does not exist.
|
||||
if (Get-WMIObject -Class Win32_Service -Filter "Name='containerd'" -eq $null) {
|
||||
if ((Get-WMIObject -Class Win32_Service -Filter "Name='containerd'") -eq $null) {
|
||||
Log-Output "Creating containerd service"
|
||||
& containerd.exe --register-service --log-file "${env:LOGS_DIR}/containerd.log"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user