external help file | Module Name | online version | schema |
---|---|---|---|
Containers-Toolkit-help.xml |
Containers-Toolkit |
2.0.0 |
Downloads and installs Containerd.
Install-Containerd [[-Version] <String>] [[-InstallPath] <String>] [[-DownloadPath] <String>] [-Setup] [-Force]
[-Confirm] [-WhatIf] [<CommonParameters>]
Downloads Containerd files from Containerd releases and installs it the provided path. Once installation is complete, the downloaded files are deleted to save on disk space.
Once Containerd is installed and added to the environment path, we can get the path where it is installed using:
((Get-Command -Name containerd.exe).Source | Split-Path -Parent).TrimEnd("\bin")
NOTE: If Containerd already exists at the specified install path, it will be uninstalled and the specified version will be installed.
Installs Containerd using defaults
PS C:\> Install-Containerd
Installs 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'
Prompts for confirmation before running the cmdlet. For more information, see the following articles:
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Path to download files. Defaults to user's Downloads folder
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: $HOME\Downloads
Accept pipeline input: False
Accept wildcard characters: False
Installs Containerd even if the tool already exists at the specified path.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Path to install Containerd. Defaults to Defaults to $ENV:ProramFiles\containerd
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: $ENV:ProramFiles\containerd
Accept pipeline input: False
Accept wildcard characters: False
Register and start Containerd Service once Containerd installation is done
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Containerd version to install. Defaults to latest version
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: Latest version
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet isn't run.
Type: SwitchParameter
Parameter Sets: Setup
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False