From 177420ea85e6ba82f117b260305a5ce9c98f4de4 Mon Sep 17 00:00:00 2001 From: Rodion Steshenko Date: Mon, 16 Feb 2026 21:14:25 -0500 Subject: [PATCH] fix: populate network containers via NetworkInspect NetworkList returns network.Summary which doesn't include container details in the Containers field. This causes the network config panel to always show 'Containers: none' even when containers are connected to the network. Fix by calling NetworkInspect for each network during refresh to get the full inspect data including connected containers. Fixes #752 --- pkg/commands/network.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkg/commands/network.go b/pkg/commands/network.go index 74379ef0..803143e6 100644 --- a/pkg/commands/network.go +++ b/pkg/commands/network.go @@ -29,9 +29,17 @@ func (c *DockerCommand) RefreshNetworks() ([]*Network, error) { ownNetworks := make([]*Network, len(networks)) for i, nw := range networks { + // NetworkList returns network.Summary which doesn't include container + // details. We need to inspect each network to populate Containers. + inspected, err := c.Client.NetworkInspect(context.Background(), nw.ID, network.InspectOptions{}) + if err != nil { + c.Log.WithError(err).Warn("failed to inspect network " + nw.Name) + inspected = nw + } + ownNetworks[i] = &Network{ Name: nw.Name, - Network: nw, + Network: inspected, Client: c.Client, OSCommand: c.OSCommand, Log: c.Log,