mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Fix the containerd service check
This commit is contained in:
		@@ -1608,7 +1608,7 @@ function Configure_Containerd {
 | 
				
			|||||||
# Register if needed and start containerd service.
 | 
					# Register if needed and start containerd service.
 | 
				
			||||||
function Start_Containerd {
 | 
					function Start_Containerd {
 | 
				
			||||||
  # Do the registration only if the containerd service does not exist.
 | 
					  # 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"
 | 
					    Log-Output "Creating containerd service"
 | 
				
			||||||
    & containerd.exe --register-service --log-file "${env:LOGS_DIR}/containerd.log"
 | 
					    & containerd.exe --register-service --log-file "${env:LOGS_DIR}/containerd.log"
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user