external help file: containers-toolkit-help.xml Module Name: Containers-Toolkit online version: schema: 2.0.0
Downloads and installs BuildKit.
Install-Buildkit [-Version <String>] [-InstallPath <String>] [-DownloadPath <String>] [-OSArchitecture <String>]
[-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Install-Buildkit [-Version <String>] [-InstallPath <String>] [-DownloadPath <String>] [-RegisterService]
[-WinCNIPath <String>] [-OSArchitecture <String>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Downloads BuildKit files from Containerd releases and installs it the provided path. After installation is complete, the downloaded files are deleted to save on disk space. We can get the path where Buildkit is installed using:
((Get-Command -Name "buildkitd.exe").Source | Split-Path -Parent).TrimEnd("\bin")NOTE: If -Force is specified and BuildKit is already present at the specified install path, it will be uninstalled and replaced with the specified version. Otherwise, the installation will be skipped.
Installs BuildKit using default version and path.
PS C:\> Install-BuildKitInstalls BuildKit version 0.12.2 at 'C:\Test\Path\buildkit' and adds 'C:\Test\Path\buildkit' in the environment path.
PS C:\> Install-BuildKit -Version "0.12.2" -InstallPath 'C:\Test\Path\buildkit'Path to download files. Defaults to $HOME\Downloads
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: $HOME\Downloads
Accept pipeline input: False
Accept wildcard characters: FalseInstalls Buildkit even if the tool already exists at the specified path.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalsePath to install BuildKit. Defaults to $ENV:ProgramFiles\BuildKit
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: $Env:ProgramFiles\Buildkit
Accept pipeline input: False
Accept wildcard characters: FalseOS architecture to download files for.
Default is $env:PROCESSOR_ARCHITECTURE
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: $env:PROCESSOR_ARCHITECTURE
Accept pipeline input: False
Accept wildcard characters: FalseRegister and start the buildkitd Service.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: Setup
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseBuildkit version to use. Defaults to latest version.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: latest
Accept pipeline input: False
Accept wildcard characters: FalsePath where Windows CNI plugins are installed. Defaults to $ENV:ProgramFiles\Containerd\cni
Type: String
Parameter Sets: Setup
Aliases:
Required: False
Position: Named
Default value: $ENV:ProgramFiles\Containerd\cni
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.