Name ports after the Docker containers that publish them

The health pass keeps the host ports Dockhand says running containers
publish (new table server_container_ports, migration 0080), matched to a
server by its Docker host's name. They name the port on the server's Ports
card and the network Ports table, ahead of a port preset and behind a
label somebody wrote, and in the new-port alert ("8096/tcp jellyfin
(container)"). Never written onto port notes, so a container's port is
still a new port; an unreadable host keeps its names, a day-old name is
dropped. Dockhand is now read on the health pass even with container
alerts off.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-31 22:45:50 +01:00
1 parent 75f060049f
commit 9ca83994fb
18 files changed
+9026 -29

No files matched your search

+3 -2
View File
@@ -19,6 +19,7 @@ import { formatAgo } from "../utils/duration";
import { ErrorNotice } from "../components/Notice";
import PortPresets from "../components/PortPresets";
import ViewTabs from "../components/ViewTabs";
import { portName } from "../utils/portName";
import { EmptyRow, LoadingRow } from "../components/EmptyState";
const emptyForm: PortForwardInput = {
@@ -100,7 +101,7 @@ export default function Ports({ user }: { user: CurrentUser }) {
p.serverHostname ?? "",
p.protocol,
p.port,
p.service ?? "",
portName(p)?.text ?? "",
p.addresses.join(", "),
p.process ?? "",
p.localOnly ? "yes" : "no",
@@ -241,7 +242,7 @@ export default function Ports({ user }: { user: CurrentUser }) {
</td>
<td className="text-uppercase text-secondary">{p.protocol}</td>
<td>{p.port}</td>
<td className="text-secondary" title={p.service ? "Named by a port preset" : undefined}>{p.service ?? "—"}</td>
<td className="text-secondary" title={portName(p)?.title}>{portName(p)?.text ?? "—"}</td>
<td className="text-secondary">
{p.addresses.join(", ")}
{p.localOnly && <span className="badge bg-secondary-lt text-secondary ms-2">local only</span>}