Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update Docker Engine to Version 28.*
Fixes #11766

Update Docker Engine to Version 28.* in Ubuntu OS images.

* **Update toolset files**
  - Update `images/ubuntu/toolsets/toolset-2004.json` to list Docker Engine Version 28.*, Docker CE CLI Version 28.*, and Docker Compose Version 2.28.0.
  - Update `images/ubuntu/toolsets/toolset-2204.json` to list Docker Engine Version 28.*, Docker CE CLI Version 28.*, and Docker Compose Version 2.28.0.
  - Update `images/ubuntu/toolsets/toolset-2404.json` to list Docker Engine Version 28.*, Docker CE CLI Version 28.*, and Docker Compose Version 2.28.0.

* **Add tests for Docker Engine Version 28.***
  - Add `images/ubuntu/scripts/tests/Docker.Tests.ps1` to include tests for Docker Engine Version 28.*.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/actions/runner-images/issues/11766?shareId=XXXX-XXXX-XXXX-XXXX).
  • Loading branch information
Dustin4444 committed Mar 28, 2025
commit 673ed2c044690585f6c966947dc0e226e70220f8
41 changes: 41 additions & 0 deletions images/ubuntu/scripts/tests/Docker.Tests.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Describe "Docker" {
It "docker is installed" {
"docker --version" | Should -ReturnZeroExitCode
}

It "docker service is up" {
"docker images" | Should -ReturnZeroExitCode
}

It "docker symlink" {
"C:\Windows\SysWOW64\docker.exe ps" | Should -ReturnZeroExitCode
}

It "docker version 28.* is installed" {
$dockerVersion = (docker --version).Split(" ")[2]
$dockerVersion | Should -Match "^28\."
}
}

Describe "DockerCompose" {
It "docker compose v2" {
"docker compose version" | Should -ReturnZeroExitCode
}

}

Describe "DockerWinCred" {
It "docker-wincred" {
"docker-credential-wincred version" | Should -ReturnZeroExitCode
}
}

Describe "DockerImages" -Skip:(Test-IsWin25) {
Context "docker images" {
$testCases = (Get-ToolsetContent).docker.images | ForEach-Object { @{ ImageName = $_ } }

It "<ImageName>" -TestCases $testCases {
docker images "$ImageName" --format "{{.Repository}}" | Should -Not -BeNullOrEmpty
}
}
}
6 changes: 3 additions & 3 deletions images/ubuntu/toolsets/toolset-2004.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,11 @@
},
{
"package": "docker-ce-cli",
"version": "26.1.3"
"version": "28.*"
},
{
"package": "docker-ce",
"version": "26.1.3"
"version": "28.*"
}
],
"plugins": [
Expand All @@ -252,7 +252,7 @@
},
{
"plugin": "compose",
"version": "2.27.1",
"version": "2.28.0",
"asset": "linux-x86_64"
}
]
Expand Down
6 changes: 3 additions & 3 deletions images/ubuntu/toolsets/toolset-2204.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@
},
{
"package": "docker-ce-cli",
"version": "26.1.3"
"version": "28.*"
},
{
"package": "docker-ce",
"version": "26.1.3"
"version": "28.*"
}
],
"plugins": [
Expand All @@ -251,7 +251,7 @@
},
{
"plugin": "compose",
"version": "2.27.1",
"version": "2.28.0",
"asset": "linux-x86_64"
}
]
Expand Down
6 changes: 3 additions & 3 deletions images/ubuntu/toolsets/toolset-2404.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@
},
{
"package": "docker-ce-cli",
"version": "26.1.3"
"version": "28.*"
},
{
"package": "docker-ce",
"version": "26.1.3"
"version": "28.*"
}
],
"plugins": [
Expand All @@ -210,7 +210,7 @@
},
{
"plugin": "compose",
"version": "2.27.1",
"version": "2.28.0",
"asset": "linux-x86_64"
}
]
Expand Down