external help file: Containers-Toolkit-help.xml Module Name: Containers-Toolkit online version: schema: 2.0.0
Downloads and installs Containerd.
Install-Containerd [[-Version] <String>] [[-InstallPath] <String>] [[-DownloadPath] <String>]
[-RegisterService] [-OSArchitecture <String>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Downloads Containerd 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 it is installed using:
((Get-Command -Name containerd.exe).Source | Split-Path -Parent).TrimEnd("\bin")NOTE: If -Force is specified and Containerd 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 Containerd using defaults
PS C:\> Install-ContainerdInstalls Containerd version 1.7.7 at 'C:\Test\Path\containerd' and adds 'C:\Test\Path\containerd' in the environment path.
PS C:\> Install-Containerd -Version "1.7.7" -InstallPath 'C:\Test\Path\Containerd'
## PARAMETERS
### -DownloadPath
Path to download files. Defaults to `$HOME\Downloads`
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: $HOME\Downloads
Accept pipeline input: False
Accept wildcard characters: FalseInstalls Containerd 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 Containerd. Defaults to Defaults to $ENV:ProgramFiles\containerd
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: $ENV:ProgramFiles\containerd
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 Containerd Service.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: Setup
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseContainerD version to use. Defaults to latest version
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: latest
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: None
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.