feat: add Docker container column in drill-down view#12
Merged
Conversation
When drilling into a Docker process (com.docker.backend, dockerd, etc.), an extra "Container" column appears showing container name, image, and port mapping (e.g., "nginx (nginx:latest) 8080→80"). - Add internal/docker package with Resolver using Docker Engine API - Add ContainerInfo/PortMapping types to model - Detect Docker processes on drill-down, resolve ports to containers - Render Container column with flex layout, sortable via sort mode - Graceful degradation when Docker is unavailable - Comprehensive tests: unit, sort, view rendering, integration flow Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fixes GO-2026-4340 (TLS encryption level) and GO-2026-4337 (TLS session resumption). govulncheck now reports 0 vulnerabilities. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nginx (nginx:latest) 8080→80)internal/dockerpackage withResolverinterface, async resolution on tick, port-keyed cacheskey), with empty values sorting to topChanges
internal/docker/— New package:Resolverinterface,dockerResolverimpl using Docker Engine API,IsDockerProcess()detection,FormatColumn()display helperinternal/model/network.go—ContainerInfo,PortMappingtypes,FormatContainerColumn()with rune-aware truncationinternal/ui/model.go—SortContainerenum,dockerResolver/dockerCache/dockerViewfieldsinternal/ui/update.go— Docker detection on drill-down,DockerResolvedMsghandler, asyncfetchDockerContainers()on tickinternal/ui/view.go—activeConnectionsColumns()toggles between standard and Docker column setsinternal/ui/view_table.go—dockerConnectionsColumns()layout,containerColumnValue()port→container lookupinternal/ui/view_sort.go—SortContainercase withcontainerSortKey()helpergo.mod— Addedgithub.com/docker/dockerSDK dependencyTest plan
go test ./...)make lint), security clean (make security)🤖 Generated with Claude Code