Skip to content

Latest commit

 

History

History
163 lines (117 loc) · 3.38 KB

Install-Nerdctl.md

File metadata and controls

163 lines (117 loc) · 3.38 KB

external help file: containers-toolkit-help.xml Module Name: containers-toolkit online version: schema: 2.0.0

Install-Nerdctl

SYNOPSIS

Downloads and installs nerdctl.

SYNTAX

Install-Nerdctl [[-Version] <String>] [[-InstallPath] <String>] [[-DownloadPath] <String>]
 [[-Dependencies] <String[]>] [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]

DESCRIPTION

Downloads Containerd files from nerdctl releases and installs it the provided path. Once installation is complete, the downloaded files are deleted to save on disk space.

EXAMPLES

Example 1: Using defaults

Installs nerdctl using default version and path.

PS C:\> Install-Nerdctl

Example 2: Using custom values

Installs nerdctl version 1.6.1 at 'C:\Test\Path\nerdctl' and adds 'C:\Test\Path\nerdctl' in the environment path.

PS C:\> Install-Nerdctl -Version "1.6.1" -InstallPath 'C:\Test\Path\nerdctl'

PARAMETERS

-Confirm

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

-Dependencies

Specify the nerdctl dependencies (All, Containerd, Buildkit, WinCNIPlugin) to install. Input type: array

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DownloadPath

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

-Force

Installs nerdctl (and its dependecies if specified) 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: False

-InstallPath

Path to install nerdctl. Defaults to $ENV:ProramFiles\nerdctl

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: $ENV:ProramFiles\nerdctl`
Accept pipeline input: False
Accept wildcard characters: False

-Version

nerdctl 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

-WhatIf

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

RELATED LINKS