Powershell Cmdlets that wrap the docker client and support the interaction with containers
Get version information
Get-DockerVersion [[-Timeout] <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Returns version information of the docker client and service. Wraps the command `docker version`.
$version = Get-DockerVersion
PS C:\> $version.Client
Version : 18.06.1-ce
Goversion : go1.10.3
Experimental : false
APIversion : 1.38
Gitcommit : e68fc7a
Built : Tue Aug 21 17:21:34 2018
OSArch : windows/amd64
PS C:\> $version.Server Version : 18.06.1-ce Built : Tue Aug 21 17:36:40 2018 Experimental : false Goversion : go1.10.3 APIversion : 1.38 (minimum version 1.24) Gitcommit : e68fc7a Engine: : OSArch : windows/amd64
Specifies the number of seconds to wait for the command to finish.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: 1
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
https://docs.docker.com/engine/reference/commandline/version/