Skip to content
This repository was archived by the owner on Jul 20, 2026. It is now read-only.

Commit 8dbecad

Browse files
authored
Fix container inspection failure for containers with unmapped ports (#293)
1 parent cd661e7 commit 8dbecad

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/vscode-container-client/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.2 - 8 September 2025
2+
### Fixed
3+
* Fixed an issue where inspection could fail if a container had unmapped ports. [#292](https://github.com/microsoft/vscode-docker-extensibility/issues/292)
4+
15
## 0.4.1 - 22 July 2025
26
### Fixed
37
* Now depends on `@microsoft/vscode-container-client` v0.1.1, in order to get a fix. [#280](https://github.com/microsoft/vscode-docker-extensibility/issues/280)

packages/vscode-container-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@microsoft/vscode-container-client",
33
"author": "Microsoft Corporation",
4-
"version": "0.4.1",
4+
"version": "0.4.2",
55
"description": "Extensibility model for implementing container runtime providers (shared by VS and VS Code)",
66
"license": "See LICENSE in the project root for license information.",
77
"repository": {

packages/vscode-container-client/src/clients/DockerClientBase/DockerInspectContainerRecord.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const DockerInspectContainerHostConfigSchema = z.object({
6161
const DockerInspectContainerNetworkSettingsSchema = z.object({
6262
Networks: z.record(z.string(), DockerInspectContainerNetworkSchema).nullable().optional(),
6363
IPAddress: z.string().optional(),
64-
Ports: z.record(z.string(), z.array(DockerInspectContainerPortHostSchema)).nullable().optional(),
64+
Ports: z.record(z.string(), z.array(DockerInspectContainerPortHostSchema).nullable().optional()).nullable().optional(),
6565
});
6666

6767
const DockerInspectContainerStateSchema = z.object({

0 commit comments

Comments
 (0)