external help file: containers-toolkit-help.xml Module Name: containers-toolkit online version: schema: 2.0.0
Registers the buildkitd service with a prompt to either register with the Containerd CNI configurations (0-containerd-nat.conf) or not.
Register-BuildkitdService [[-WinCNIPath] <String>] [[-BuildKitPath] <String>] [-Start] [-WhatIf]
[<CommonParameters>]
Registers the buildkitd service with a prompt to either register with the Containerd CNI configurations (0-containerd-nat.conf) or not.
PS C:\> Register-BuildkitdServiceRegisters buildkitd with the default Containerd configurations file 0-containerd-nat.conf if it is available.
PS C:\> Register-BuildkitdService -WinCNIPath '$ENV:ProgramFiles\containerd\cni' -BuildKitPath '$ENV:ProgramFiles\Buildkit'Registers buildkitd with the default Containerd configurations file 0-containerd-nat.conf found at $ENV:ProgramFiles\containerd\cni.
Path where BuildKit is installed. If not provided, it defaults to BuildKit path in the environment path variable or $Env:ProgramFiles\Buildkit
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: $Env:ProgramFiles\Buildkit
Accept pipeline input: False
Accept wildcard characters: FalseBypass confirmation to register buildkitd service
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseSpecify to start Buildkitd service after registration is complete
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalsePath where Windows CNI plugin is installed.
If not provided, it defaults to Containerd path in the environment path variable or $Env:ProgramFiles\Containerd
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: $Env:ProgramFiles\Containerd
Accept pipeline input: False
Accept wildcard characters: FalsePrompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseShows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
When the 0-containerd-nat.conf does not exist, the user is prompted to register buildkitd service with or without this file.
Buildkit conf file not found at ~\cni\conf\0-containerd-nat.conf.
Do you want to register buildkit service without Containerd cni configuration?
[Y] Yes [N] No [?] Help (default is "Y"):
- If a user enters
Y(default), the user consents to register buildkitd service without the default Containerd NAT configuration file. - If a user enters
N, buildkitd service is not registered and the user has to register the service themselves.