diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index d10d82510..21754fe86 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -96,7 +96,8 @@ $toolsList = @( (Get-CoreUtilsVersion), (Get-CMakeVersion), (Get-CurlVersion), - (Get-DockerMobyVersion), + (Get-DockerMobyClientVersion), + (Get-DockerMobyServerVersion), (Get-DockerComposeVersion), (Get-DockerBuildxVersion), (Get-GitVersion), diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 index 9226ad055..be10c2fac 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 @@ -84,9 +84,14 @@ function Get-DockerComposeVersion { return "Docker Compose $composeVersion" } -function Get-DockerMobyVersion { - $dockerVersion = docker -v | Take-OutputPart -Part 2 | Take-OutputPart -Part 0 -Delimiter "+" - return "Docker-Moby $dockerVersion" +function Get-DockerMobyClientVersion { + $dockerClientVersion = sudo docker version --format '{{.Client.Version}}' + return "Docker-Moby Client $dockerClientVersion" +} + +function Get-DockerMobyServerVersion { + $dockerServerVersion = sudo docker version --format '{{.Server.Version}}' + return "Docker-Moby Server $dockerServerVersion" } function Get-DockerBuildxVersion {