signalk-container 1.34.0 → 1.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/AGENTS.md +17 -6
  3. package/README.md +2 -1
  4. package/dist/containers.d.ts +28 -1
  5. package/dist/containers.d.ts.map +1 -1
  6. package/dist/containers.js +120 -22
  7. package/dist/containers.js.map +1 -1
  8. package/dist/index.d.ts +9 -0
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +191 -27
  11. package/dist/index.js.map +1 -1
  12. package/dist/manifest/store.d.ts +10 -0
  13. package/dist/manifest/store.d.ts.map +1 -1
  14. package/dist/manifest/store.js +95 -11
  15. package/dist/manifest/store.js.map +1 -1
  16. package/dist/notifications.d.ts +1 -1
  17. package/dist/notifications.d.ts.map +1 -1
  18. package/dist/notifications.js.map +1 -1
  19. package/dist/orphans.d.ts +38 -0
  20. package/dist/orphans.d.ts.map +1 -0
  21. package/dist/orphans.js +36 -0
  22. package/dist/orphans.js.map +1 -0
  23. package/dist/resources.d.ts +18 -0
  24. package/dist/resources.d.ts.map +1 -1
  25. package/dist/resources.js +53 -0
  26. package/dist/resources.js.map +1 -1
  27. package/dist/types.d.ts +30 -6
  28. package/dist/types.d.ts.map +1 -1
  29. package/dist/updates/applyPlan.d.ts +10 -0
  30. package/dist/updates/applyPlan.d.ts.map +1 -0
  31. package/dist/updates/applyPlan.js +35 -0
  32. package/dist/updates/applyPlan.js.map +1 -0
  33. package/dist/updates/routes.d.ts +6 -1
  34. package/dist/updates/routes.d.ts.map +1 -1
  35. package/dist/updates/routes.js +26 -9
  36. package/dist/updates/routes.js.map +1 -1
  37. package/package.json +1 -1
  38. package/public/chunks/_virtual_mf-localSharedImportMap___mfe_internal__signalk_container__mf_owner__1-_R-vaMcG.js +1 -0
  39. package/public/chunks/dist-D1jGdgWH.js +4 -0
  40. package/public/chunks/hostInit-BO83zfBC.js +1 -0
  41. package/public/chunks/{pendingShares-54_MF_VA.js → pendingShares-DNGb36aF.js} +1 -1
  42. package/public/chunks/vite-preload-helper-DHhhL8Zf.js +1 -0
  43. package/public/configpanel-entry.js +2 -2
  44. package/public/remoteEntry.js +1 -1
  45. package/public/chunks/_virtual_mf-localSharedImportMap___mfe_internal__signalk_container__mf_owner__1-BlAkD1YK.js +0 -1
  46. package/public/chunks/dist-CQGGQmGd.js +0 -4
  47. package/public/chunks/hostInit-DFFGJgo2.js +0 -1
  48. package/public/chunks/vite-preload-helper-B3nfOi5I.js +0 -1
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "1.34.0"
2
+ ".": "1.35.1"
3
3
  }
package/AGENTS.md CHANGED
@@ -74,7 +74,7 @@ These are non-obvious rules baked into the runtime layer. Breaking them produces
74
74
  Every managed container, one-shot job container, and job label carries a **namespace prefix** so two Signal K servers sharing one container runtime never collide, reap, or drift-recreate each other's containers. The canonical case is a devcontainer dev instance and a production install on the same host, both talking to the same rootless-Podman socket: without a namespace the dev server's `ensureRunning("questdb")` would inspect the production `sk-questdb`, and its job reaper (`cleanupOrphanedJobs`) could force-remove production `sk-job-*` helpers.
75
75
 
76
76
  - `src/namespace.ts` is the single source of truth. The namespace token defaults to `sk`, so an install that sets no env var produces **the same container names, job names, and label keys** as prior releases: containers `sk-<name>`, jobs `sk-job-<id>`, labels `sk-charts-job` / `sk-job-owner` / `sk-job-label`.
77
- - `setNamespace(process.env.SIGNALK_CONTAINER_NAMESPACE, onInvalid)` runs once in `plugin.start()`, **before** anything creates or reaps a container. `plugin.stop()` calls `resetNamespace()` (mirrors the `setDisableUserns` lifecycle — see below). The value is boundary-validated: 1–32 lowercase alphanumerics; anything else logs via `app.error` and falls back to `sk` so a typo can't crash startup or produce an invalid container name.
77
+ - `setNamespace(process.env.SIGNALK_CONTAINER_NAMESPACE, onInvalid)` runs once in `plugin.start()`, **before** anything creates or reaps a container. `plugin.stop()` deliberately leaves the namespace set: a consumer stopped in the same server shutdown can still call `api.stop(name)` after this plugin stopped (it falls back to the runtime `stop()` retired), and that stop must resolve the same prefixed name — resetting to `sk` would let a dev instance stop production's container. The value is boundary-validated: 1–32 lowercase alphanumerics; anything else logs via `app.error` and falls back to `sk` so a typo can't crash startup or produce an invalid container name.
78
78
  - Everything derives from the token via the accessors — `containerPrefix()`, `jobPrefix()`, `jobMarkerLabel()`, `jobOwnerLabel()`, `jobNameLabel()`, `requestedResourcesLabel()`. Never re-hardcode `"sk-"`; `prefixedName()` is the sole place a bare name becomes a container name — call it, never re-implement a `startsWith("sk-")` prefix check.
79
79
  - The **label keys** are namespaced too (`<ns>-charts-job`, `<ns>-job-owner`, `<ns>-job-label`, `<ns>-requested-resources`), so a dev instance's reap query doesn't even _list_ production's jobs. The name-prefix guard in `orphanFromContainer` (`name.startsWith(jobPrefix())`) remains the unspoofable-by-label trait — and being namespaced, it can never match a foreign-namespace helper.
80
80
  - The devcontainer sets `SIGNALK_CONTAINER_NAMESPACE=devpod` (in the installer repo's `dev/dev.sh`), so its containers are `devpod-<name>`. Note the prefix isolates **names and reaping**, not host **ports** — a consumer plugin that publishes a fixed host port still collides port-wise with its production twin; that is handled separately (pick non-colliding ports for dev).
@@ -176,6 +176,8 @@ When we need to read live container state, call `getContainer(name).inspect()` o
176
176
 
177
177
  Docker reports `HostConfig.NetworkMode` as `"default"` or `"bridge"` when no `--network` was passed. Podman rootless reports `"slirp4netns"` or `"pasta"`. These are runtime defaults equivalent to "user did not request a specific network." `canonicalNetworkMode()` in `src/containers.ts` normalizes all of them to `""` so comparison against a requested `undefined`/`""` is correct. Any new comparison of `networkMode` between requested and live state must go through this helper.
178
178
 
179
+ Podman also reports `"bridge"` for a container on a user-defined network: one created with `NetworkMode: "sk-network"` inspects as `"bridge"`, and `sk-network` appears only as a key of `NetworkSettings.Networks` (measured over the compat API on podman 5.8.6, aarch64). Comparing the mode alone would recreate every such container on each `ensureRunning`, so `networkModeMatches()` also accepts, on podman, a live `"bridge"` container that is attached to the requested network. Docker keeps the plain mode comparison: its report of this case has not been measured.
180
+
179
181
  ### Device access (`devices` / `groupAdd` / `capAdd`)
180
182
 
181
183
  Three runtime quirks shape this feature; all were verified live on rootless Podman 5.4.2 and are load-bearing:
@@ -204,18 +206,27 @@ Discoverability — `selfDeployment().containerStorage` reports the filesystem b
204
206
 
205
207
  ### Degradation notifications (`notifications.container.*`)
206
208
 
207
- `src/notifications.ts` (`makeDegradationEmitter`) publishes SignalK notifications for five managed-container degradation conditions, via the server's `app.notifications.raise()`/`clear()` API. Wired into the `src/index.ts` wrapper.
209
+ `src/notifications.ts` (`makeDegradationEmitter`) publishes SignalK notifications for six degradation conditions (five per container, plus the host-level deployment one), via the server's `app.notifications.raise()`/`clear()` API. Wired into the `src/index.ts` wrapper.
208
210
 
209
- - **Conditions → path → state**: unhealthy → `notifications.container.<name>.unhealthy` `warn`; host-rejected device (`DeviceIssue` action `unresolved`) → `.deviceUnresolved` `warn`; missing required volume (`ifMissing:'abort'`) → `.volumeAborted` `alert`; degraded runtime deployment (`isDashboardDeploymentError`) → the host-level `notifications.container.deployment` `warn`; crash-looping container → `.crashLooping` `alert`. Paths use the **unprefixed** container name (the notification bus is per-server, so the container-name namespace buys nothing here) and `idInPath:false` (stable, addressable, updates in place — plus the tracked id is what `clear` needs).
211
+ - **Conditions → path → state**: unhealthy → `notifications.container.<name>.unhealthy` `warn`; host-rejected device (`DeviceIssue` action `unresolved`) → `.deviceUnresolved` `warn`; missing required volume (`ifMissing:'abort'`) → `.volumeAborted` `alert`; degraded runtime deployment (`isDashboardDeploymentError`) → the host-level `notifications.container.deployment` `warn`; crash-looping container → `.crashLooping` `alert`; container whose owning plugin is no longer installed → `.ownerUninstalled` `warn`. Paths use the **unprefixed** container name (the notification bus is per-server, so the container-name namespace buys nothing here) and `idInPath:false` (stable, addressable, updates in place — plus the tracked id is what `clear` needs).
210
212
  - **crashLooping keys on a RATE, never a raw count.** `RestartCount` from inspect is a _lifetime_ total and is legitimately non-zero on a healthy container under `--restart=unless-stopped` after a host reboot — a threshold on the raw value alerts on uptime, not on failure. The invariants `observeRestarts` must hold: the **first** observation of a container never raises (its history is unwitnessed); a _decreasing_ count re-baselines (the container was recreated); a burst straddling a window boundary still raises (the window slides, it does not tumble); and an observation gap longer than the window re-anchors rather than alerting, because those restarts are undatable. Driven by one shared sweep over `lastConfigs`, deliberately **not** gated on `options.healthCheck`: a container dying at startup never reaches the state where a health check could run, so `pollHealth` cannot see this class of failure at all. See `src/notifications.ts`, `sweepRestartsOnce` in `src/index.ts`, and their boundary tests.
211
213
  - **Additive, never a replacement.** Every site keeps its existing log / `setPluginError` / consumer-callback surfacing; the notification is a parallel channel. Do not remove the old surfacing when touching these sites.
212
214
  - **Two gates**: the `emitDegradationNotifications` config toggle (default **on**) and the server exposing `app.notifications` (≥ 2.30.0). The pinned `@signalk/server-api` (2.24.0) does NOT declare `raise`/`clear`, so the `App` interface declares a local minimal shape (like `handleMessage?`/`config?`) and the emitter no-ops when `app.notifications` is absent — older servers degrade to the existing surfacing, never throw.
213
215
  - **NO `method`.** The emitter states severity only; the NotificationManager owns presentation (RFC notification-handling §6.1). The `raise` option type deliberately omits `method` so the `updates/service.ts` `handleMessage`+`method:["visual"]` pattern (a separate, older emitter on `notifications.plugins.<id>.updateAvailable`) can't be copied here.
214
- - **Recovery/clear**: unhealthy is edge-triggered (raise on healthy→unhealthy, clear on unhealthy→healthy) via per-container health tracking in `pollHealth`; deviceUnresolved raises/clears off the `unresolved` subset each commit (`syncDeviceIssues`, called from all three `commitDeviceIssues` sites); volumeAborted clears unconditionally on any successful `ensureRunning` (reaching the success commit means nothing aborted); deployment clears on a subsequent start that finds the host `ok`. crashLooping is rate-derived in `observeRestarts` (see below) and clears when the rate falls back below the threshold across the sliding window, or when the counter resets. `afterContainerRemoved` clears the four per-container conditions; `stop()` calls `degradation.reset()` (clears all outstanding + drops state), mirroring the `resetNamespace`/`setDisableUserns` lifecycle.
216
+ - **Recovery/clear**: unhealthy is edge-triggered (raise on healthy→unhealthy, clear on unhealthy→healthy) via per-container health tracking in `pollHealth`; deviceUnresolved raises/clears off the `unresolved` subset each commit (`syncDeviceIssues`, called from all three `commitDeviceIssues` sites); volumeAborted clears unconditionally on any successful `ensureRunning` (reaching the success commit means nothing aborted); deployment clears on a subsequent start that finds the host `ok`. crashLooping is rate-derived in `observeRestarts` (see below) and clears when the rate falls back below the threshold across the sliding window, or when the counter resets. ownerUninstalled clears when the owner brings the container up again (a successful `ensureRunning`). `afterContainerRemoved` clears the five per-container conditions; `stop()` calls `degradation.reset()` (clears all outstanding + drops state), mirroring the `setDisableUserns` lifecycle.
217
+
218
+ ### Containers of uninstalled plugins
219
+
220
+ Removing a plugin removes its package, not its container, and under `unless-stopped` the container outlives the plugin and every server restart. `checkOrphans` in `src/index.ts` runs once, `ORPHAN_CHECK_DELAY_MS` after the runtime is detected, and stops (never removes) each managed container that `findOrphans` (`src/orphans.ts`) reports, then raises `ownerUninstalled` and sets `ContainerInfo.uninstalledOwner` for the panel. Removing such a container also drops its manifest record. The rules keep a false positive from stopping a live plugin's container:
221
+
222
+ - **The owner comes from the manifest, never the container name** (names do not map to packages: `mayara-server` belongs to `@marineyachtradar/signalk-plugin`). A container recorded only under the synthetic `container:<name>` id has no owner and is never flagged.
223
+ - **The installed set is `app.getPluginsList()` ids, read after a delay.** Signal K loads plugins in sequence, so a list read at this plugin's own start can still lack owners that load later. No list, or an empty one, flags nothing.
224
+ - **An owner counts as installed if its id is a loaded plugin's id OR a package of that name is installed** under the config dir, so a consumer that records its npm name instead of its plugin id is not flagged.
225
+ - **A container brought up by `ensureRunning` this session is never flagged** (`lastConfigs`): its owner is evidently running, whatever id it recorded.
215
226
 
216
227
  ### Auto-recreate on config drift
217
228
 
218
- `ensureRunning` compares the requested `ContainerConfig` against the live container's effective config on every call. On drift across `image+tag`, `command`, `networkMode`, `env`, `volumes`, `ports`, `extraHosts`, `devices`, `groupAdd`, `capAdd`, or `user`, it removes and recreates the container transparently. (`user` only where the expected form surfaces in `Config.User` — rootless podman's `keep-id` mapping does not, and suppresses it by design.) The authoritative list is `drifted.push(...)` in `diffContainerConfig`; per-field intent lives on `ContainerConfig` in `src/types.ts`. `resources` follows the existing live-update path. Consumer plugins do not need (and should remove) per-plugin `${dataDir}.container-hash` files — this is centralized.
229
+ `ensureRunning` compares the requested `ContainerConfig` against the live container's effective config on every call. On drift across `image+tag`, `command`, `networkMode`, `env`, `volumes`, `ports`, `extraHosts`, `devices`, `groupAdd`, `capAdd`, or `user`, it removes and recreates the container transparently, stopping the old one with the runtime's grace period (`removeContainer`'s `graceful` option) so a database can close its files before the replacement starts on the same data; `recreate()` and the resource-update recreate fallback stop it the same way. If the runtime refuses that stop and the container is still running, `removeContainer` throws a `ContainerRemovalError` carrying the stop error's kind instead of force-removing it, so a rootless wedge still reaches the keep-and-defer path as `permission`. (`user` only where the expected form surfaces in `Config.User` — rootless podman's `keep-id` mapping does not, and suppresses it by design.) The authoritative list is `drifted.push(...)` in `diffContainerConfig`; per-field intent lives on `ContainerConfig` in `src/types.ts`. `resources` follows the existing live-update path. Consumer plugins do not need (and should remove) per-plugin `${dataDir}.container-hash` files — this is centralized.
219
230
 
220
231
  The diff has an optional `prior?: ContainerConfig` parameter for detecting "unset" drift (an env key previously set is now absent, a `command` previously set is now `undefined`). The wrapper in `src/index.ts` reads it from `lastConfigs` before overwriting.
221
232
 
@@ -235,7 +246,7 @@ After auto-recreate, `ensureRunning` recursively re-enters itself with `_postRec
235
246
 
236
247
  `whenReady()` (added in 1.6.0) is the canonical "wait for runtime detection to settle" call. Consumer plugins should use it instead of polling `getRuntime()` in a loop. Tests and code in this repo do not need it — they have direct access to the detection result.
237
248
 
238
- `recreate(name, config, options?)` (added in 1.12.0) is the canonical "force-recreate now" call for consumer plugins that pin an image version and bumped it. It is `containers.remove(name)` (idempotent on a truly-missing container — runtime errors are tolerated when a follow-up `getContainerState` confirms `missing`) followed by `containers.ensureRunning(name, config, options)` — drift detection plays no role, so it works the same on every signalk-container version that ships it. Use this instead of an `ensureRunning`-only flow when correctness must not depend on the drift detector firing. The implementation is intentionally thin: any wrapper-level behaviour `ensureRunning` provides (volume policy, `signalkAccessiblePorts`, `signalkConfigRootMount`, `signalkDataMount`, log streaming, manifest recording) is inherited unchanged.
249
+ `recreate(name, config, options?)` (added in 1.12.0) is the canonical "force-recreate now" call for consumer plugins that pin an image version and bumped it. It removes the container the way `containers.remove(name)` does, except that it stops it with the runtime's grace period rather than `t: 0` (idempotent on a truly-missing container — runtime errors are tolerated when a follow-up `getContainerState` confirms `missing`; a graceful stop the runtime refuses while the container keeps running rejects, leaving it running), then calls `containers.ensureRunning(name, config, options)` — drift detection plays no role, so it works the same on every signalk-container version that ships it. Use this instead of an `ensureRunning`-only flow when correctness must not depend on the drift detector firing. The implementation is intentionally thin: any wrapper-level behaviour `ensureRunning` provides (volume policy, `signalkAccessiblePorts`, `signalkConfigRootMount`, `signalkDataMount`, log streaming, manifest recording) is inherited unchanged.
239
250
 
240
251
  ### Container persistence across reboots
241
252
 
package/README.md CHANGED
@@ -12,7 +12,7 @@ Instead of each plugin implementing its own container orchestration, they delega
12
12
  - **Healthcheck handling** -- image-declared healthchecks are made to work reliably across runtimes. For images that ship **no** healthcheck, consumer plugins set `ContainerConfig.healthcheck` to supply a probe, so the container reports a real health status instead of being stuck in `starting`. See the [developer guide](doc/plugin-developer-guide.md#healthcheck-for-images-that-ship-none).
13
13
  - **One-shot jobs** -- run containers for batch tasks (export, conversion, etc.)
14
14
  - **Update detection** -- centralized "is there a newer image?" service for all consumer plugins. Auto-detects semver vs floating tags (`:latest`, `:main`), offline-tolerant with persistent cache, emits Signal K notifications, visible inline in the config panel. See the [developer guide](doc/plugin-developer-guide.md#update-detection).
15
- - **Degradation notifications** -- publishes SignalK notifications on `notifications.container.*` when a managed container is unhealthy, a requested host device was rejected, a required volume source is missing, the container-runtime deployment is degraded, or a container is crash-looping. Severity is `warn` (or `alert` for a missing required volume and for a crash loop); the notification carries no `method`, so the server's NotificationManager controls how it is presented. Each clears when its condition recovers: the unhealthy and volume notifications clear the moment the next health check or `ensureRunning` succeeds, the device notification clears when a later `ensureRunning` finds no unresolved devices, the crash-loop notification clears once the container falls back below three restarts per five minutes, and the deployment notification clears on the next plugin start that finds the host healthy. A crash loop is measured as three restarts within any five-minute span _while the plugin is watching_ — the restarts a container accumulated before that (surviving a host reboot, say) never raise it. On by default; opt out with the "Emit container degradation notifications" config toggle. Requires a SignalK server ≥ 2.30.0 (no effect on older servers).
15
+ - **Degradation notifications** -- publishes SignalK notifications on `notifications.container.*` when a managed container is unhealthy, a requested host device was rejected, a required volume source is missing, the container-runtime deployment is degraded, a container is crash-looping, or a container's plugin is no longer installed. Severity is `warn` (or `alert` for a missing required volume and for a crash loop); the notification carries no `method`, so the server's NotificationManager controls how it is presented. Each clears when its condition recovers: the unhealthy and volume notifications clear the moment the next health check or `ensureRunning` succeeds, the device notification clears when a later `ensureRunning` finds no unresolved devices, the crash-loop notification clears once the container falls back below three restarts per five minutes, and the deployment notification clears on the next plugin start that finds the host healthy. A crash loop is measured as three restarts within any five-minute span _while the plugin is watching_ — the restarts a container accumulated before that (surviving a host reboot, say) never raise it. On by default; opt out with the "Emit container degradation notifications" config toggle. Requires a SignalK server ≥ 2.30.0 (no effect on older servers).
16
16
  - **Resource limits editor** -- interactive UI in the config panel for setting CPU/memory/PID caps per container. Values are applied live via `podman update` when possible (no downtime), falls back to recreate when needed. Stored overrides are minimized against the consumer plugin's defaults so a future default bump flows through automatically. See the [developer guide](doc/plugin-developer-guide.md#resource-limits).
17
17
  - **Reset to plugin default** -- one-click restore of a container's original resource limits, clearing any user override.
18
18
  - **CPU caps that fit the host** -- a `cpus` limit above the daemon's core count is lowered to it instead of failing the container create (Docker rejects `--cpus 1.5` on a 1-vCPU host outright); the consumer plugin can surface it via the optional `onResourceClamped` callback (otherwise it is a debug-log line). See the [developer guide](doc/plugin-developer-guide.md#resource-limits).
@@ -476,6 +476,7 @@ The plugin embeds a React config panel in the Signal K Admin UI (via Module Fede
476
476
  - **Logs** opens a live-streaming popup of the container's combined stdout/stderr — works for both running and stopped containers. A container that never started has no logs; the empty log view then shows the runtime's record of the last start failure (inspect `.State.Error`) so the reason is visible without shell access
477
477
  - **Current effective resource limits** shown as compact badges (e.g. `1.5 CPU · 512m · 200 PIDs`)
478
478
  - **Override active** amber badge when the user has configured a resource override for the container
479
+ - **"Its plugin … is no longer installed"** note on a container left behind by an uninstalled plugin. Removing a plugin removes its package, not its container, so about two minutes after startup signalk-container stops every managed container whose recorded owner is no longer installed, raises `notifications.container.<name>.ownerUninstalled` (`warn`), and leaves the container for you to **Remove** (which also drops its manifest record). It only knows the owner of a container whose plugin passes `pluginId` to `ensureRunning` (signalk-container-helper does); others are never touched
479
480
  - **Updates row** (when the consumer plugin has registered with the update service):
480
481
  - Color-coded badge: `✓ up to date`, `↑ v3.4.0 available`, `↻ rebuild available` (floating tag), `📡 offline` (with cached state fallback), `⚠ check error`
481
482
  - "checked 5m ago" staleness indicator
@@ -482,6 +482,12 @@ export declare function getRequestedResources(name: string, client?: ContainerCl
482
482
  * `undefined` rather than breaking `ensureRunning`.
483
483
  */
484
484
  export declare function parseRequestedConfigLabel(raw: string | undefined): RequestedConfigProvenance | undefined;
485
+ /**
486
+ * A byte count for people to read: "64.8 MB", "1.2 GB", "512 B". One
487
+ * decimal at most, dropped when it is zero. Unlike `bytesToString`, which
488
+ * must round-trip a memory limit exactly, this rounds.
489
+ */
490
+ export declare function formatByteSize(bytes: number): string;
485
491
  /**
486
492
  * One host-side endpoint for a single container port. Mirror of the
487
493
  * `{ HostIp, HostPort }` shape that podman/docker emit under
@@ -542,6 +548,14 @@ export interface LiveContainerConfig {
542
548
  digest: string | null;
543
549
  command: string[] | null;
544
550
  networkMode: string;
551
+ /**
552
+ * Names of the networks the container is attached to, the keys of
553
+ * `NetworkSettings.Networks`; `[]` when none are reported. Podman
554
+ * reports `networkMode` as `"bridge"` for a container on a user-defined
555
+ * network, so this is where that network's name shows up (see
556
+ * `networkModeMatches`).
557
+ */
558
+ networks: string[];
545
559
  env: Map<string, string>;
546
560
  binds: Array<{
547
561
  host: string;
@@ -621,6 +635,9 @@ export declare function getLiveContainerConfig(runtime: ContainerRuntimeInfo, na
621
635
  * told apart from "image's baked CMD" so we skip.
622
636
  * - networkMode: runtime defaults (`bridge`, `slirp4netns`, etc.) are
623
637
  * normalized to `""` and compared as equivalent to requested undefined.
638
+ * On podman, which reports `bridge` for user-defined networks as well,
639
+ * a requested network also matches when the container is attached to
640
+ * it (`networkModeMatches`).
624
641
  * - env: requested keys must match live values. Additionally, any key
625
642
  * present in the prior env but absent from `requested.env` is treated
626
643
  * as drift (the user is unsetting it). Image-baked env keys in neither
@@ -749,7 +766,17 @@ export declare function ensureRunning(runtime: ContainerRuntimeInfo, name: strin
749
766
  prior?: ContainerConfig, _postRecreate?: boolean, _pull?: PullFn): Promise<void>;
750
767
  export declare function startContainer(runtime: ContainerRuntimeInfo, name: string, client?: ContainerClient): Promise<void>;
751
768
  export declare function stopContainer(runtime: ContainerRuntimeInfo, name: string, client?: ContainerClient): Promise<void>;
752
- export declare function removeContainer(runtime: ContainerRuntimeInfo, name: string, client?: ContainerClient): Promise<void>;
769
+ export interface RemoveContainerOptions {
770
+ /**
771
+ * Stop with the runtime's grace period — SIGTERM, then SIGKILL after the
772
+ * container's stop timeout (10 s by default) — instead of SIGKILL at
773
+ * once. Use it where a new container takes over the old one's data, as
774
+ * a recreate does: SIGKILL gives a database no chance to flush and close
775
+ * its files.
776
+ */
777
+ graceful?: boolean;
778
+ }
779
+ export declare function removeContainer(runtime: ContainerRuntimeInfo, name: string, client?: ContainerClient, options?: RemoveContainerOptions): Promise<void>;
753
780
  /**
754
781
  * Thrown by `removeContainer` when the runtime refuses to remove a container.
755
782
  * Carries the classified `kind` so callers can distinguish a `permission`
@@ -1 +1 @@
1
- {"version":3,"file":"containers.d.ts","sourceRoot":"","sources":["../src/containers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,WA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;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,oBAAoB,EAC7B,KAAK,GAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAe,EACvC,MAAM,GAAE,eAA6B,GACpC,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CA8C1B;AAED,wBAAsB,YAAY,CAChC,GAAG,EAAE,MAAM,EACX,SAAS,GAAE,MAAc,EACzB,UAAU,GAAE,MAAY,GACvB,OAAO,CAAC,IAAI,CAAC,CAYf"}
@@ -847,23 +847,72 @@ export async function getContainerState(runtime, name, client = getClient()) {
847
847
  return "missing";
848
848
  return coarseStateFrom(info.State ?? {});
849
849
  }
850
+ // The runtime's zero-value timestamp (Go's zero `time.Time`, RFC3339-
851
+ // encoded) for a `StartedAt`/`FinishedAt` that has never been set.
852
+ const ZERO_TIME_PREFIX = "0001-01-01T00:00:00";
853
+ const NS_PER_MS = 1000000n;
854
+ const SUB_MS_DIGITS = 6;
855
+ /**
856
+ * A `StartedAt`/`FinishedAt` as epoch nanoseconds, or null when it was
857
+ * never set or does not parse. Compared as instants, never as text: Docker
858
+ * trims trailing zeros from the fraction (`…05.9Z` sorts after `…05.95Z`)
859
+ * and Podman writes the host's local offset, which changes with daylight
860
+ * saving or a timezone change between a stop and the next start.
861
+ * `Date.parse` keeps milliseconds only, and a restart can stop and start
862
+ * within one, so the fraction's remaining digits are added back.
863
+ */
864
+ function timestampNs(value) {
865
+ if (typeof value !== "string" ||
866
+ value === "" ||
867
+ value.startsWith(ZERO_TIME_PREFIX)) {
868
+ return null;
869
+ }
870
+ const ms = Date.parse(value);
871
+ if (!Number.isFinite(ms))
872
+ return null;
873
+ const fraction = /\.(\d+)/.exec(value)?.[1] ?? "";
874
+ const subMs = fraction.slice(3, 3 + SUB_MS_DIGITS).padEnd(SUB_MS_DIGITS, "0");
875
+ return BigInt(ms) * NS_PER_MS + BigInt(subMs);
876
+ }
850
877
  /**
851
878
  * The defensive OR shared by `getContainerState` and
852
879
  * `getContainerStateDetail`, so a caller asking for detail can never
853
880
  * be told something different about running than a caller asking for
854
881
  * the coarse state alone.
855
882
  *
856
- * Running if ANY source says so. We'd rather report "running" when the
857
- * container is actually stopped (worst case: ensureRunning's "already
858
- * running" fast path skips a start call, which would then fail the
859
- * subsequent health check and recover) than report "stopped" when it's
860
- * running (worst case: update service skips legit checks, user sees
861
- * flap).
883
+ * Running if ANY source says so — Status, Running, or a positive Pid.
884
+ * We'd rather report "running" when the container is actually stopped
885
+ * (worst case: ensureRunning's "already running" fast path skips a
886
+ * start call) than report "stopped" when it's running (worst case:
887
+ * update service skips legit checks, user sees flap). But that OR is
888
+ * itself untrustworthy once the runtime has recorded a completed stop
889
+ * at or after the last start: a podman restart-policy re-create that
890
+ * fails partway through (conmon's OCI create racing a systemd/D-Bus
891
+ * reload, "Failed to create container: exit status 1") can leave
892
+ * Running/Pid holding stale values from the aborted attempt
893
+ * indefinitely, with nothing to ever correct them (no consumer plugin
894
+ * forces a restart off an unhealthy verdict). FinishedAt is written
895
+ * synchronously by the runtime's die-handling when the container
896
+ * actually exits, a step that already completed before any restart
897
+ * attempt runs, so a failed re-create never gets to roll it back.
898
+ *
899
+ * The timestamps decide only when Status does not say running. Status
900
+ * is the signal that failure leaves correct, and a host clock stepped
901
+ * back between a stop and the next start (a Pi without a real-time
902
+ * clock booting on a saved time after a power cut) records a StartedAt
903
+ * before the last FinishedAt on a container that is running.
862
904
  */
863
905
  function coarseStateFrom(state) {
864
906
  const status = String(state.Status ?? "")
865
907
  .toLowerCase()
866
908
  .trim();
909
+ const startedAt = timestampNs(state.StartedAt);
910
+ const finishedAt = timestampNs(state.FinishedAt);
911
+ if (status !== "running" &&
912
+ finishedAt !== null &&
913
+ (startedAt === null || finishedAt >= startedAt)) {
914
+ return "stopped";
915
+ }
867
916
  const runningFlag = state.Running === true;
868
917
  const pid = Number(state.Pid ?? 0);
869
918
  const hasLivePid = Number.isFinite(pid) && pid > 0;
@@ -1121,6 +1170,24 @@ function bytesToString(bytes) {
1121
1170
  return `${bytes / K}k`;
1122
1171
  return `${bytes}b`;
1123
1172
  }
1173
+ /** Decimal size units, as podman and docker print reclaimed space. */
1174
+ const DISPLAY_SIZE_UNITS = ["B", "kB", "MB", "GB", "TB"];
1175
+ const DISPLAY_SIZE_BASE = 1000;
1176
+ /**
1177
+ * A byte count for people to read: "64.8 MB", "1.2 GB", "512 B". One
1178
+ * decimal at most, dropped when it is zero. Unlike `bytesToString`, which
1179
+ * must round-trip a memory limit exactly, this rounds.
1180
+ */
1181
+ export function formatByteSize(bytes) {
1182
+ let value = bytes;
1183
+ let unit = 0;
1184
+ while (unit < DISPLAY_SIZE_UNITS.length - 1 &&
1185
+ Math.round(value * 10) / 10 >= DISPLAY_SIZE_BASE) {
1186
+ value /= DISPLAY_SIZE_BASE;
1187
+ unit++;
1188
+ }
1189
+ return `${Number(value.toFixed(1))} ${DISPLAY_SIZE_UNITS[unit]}`;
1190
+ }
1124
1191
  /**
1125
1192
  * Parse the JSON returned by `docker/podman inspect --format '{{json .NetworkSettings.Ports}}'`
1126
1193
  * into a Map keyed by integer container port. Pure function — used by both
@@ -1258,6 +1325,7 @@ export async function getLiveContainerConfig(runtime, name, client = getClient()
1258
1325
  if (Array.isArray(rawCmd))
1259
1326
  command = rawCmd.map((s) => String(s));
1260
1327
  const networkMode = (rawNetworkMode ?? "").trim();
1328
+ const networks = Object.keys(info.NetworkSettings?.Networks ?? {});
1261
1329
  const binds = [];
1262
1330
  if (Array.isArray(rawBinds)) {
1263
1331
  for (const entry of rawBinds) {
@@ -1358,6 +1426,7 @@ export async function getLiveContainerConfig(runtime, name, client = getClient()
1358
1426
  digest,
1359
1427
  command,
1360
1428
  networkMode,
1429
+ networks,
1361
1430
  env,
1362
1431
  binds,
1363
1432
  portBindings,
@@ -1418,6 +1487,24 @@ function canonicalNetworkMode(mode) {
1418
1487
  const m = (mode ?? "").trim();
1419
1488
  return RUNTIME_DEFAULT_NETWORK_MODES.has(m) ? "" : m;
1420
1489
  }
1490
+ /**
1491
+ * Whether the live container is on the network `requested` names.
1492
+ *
1493
+ * Podman reports `HostConfig.NetworkMode` as `"bridge"` for a container on
1494
+ * a user-defined network too: one created over the compat API with
1495
+ * `NetworkMode: "sk-network"` inspects as `"bridge"`, with `sk-network`
1496
+ * only under `NetworkSettings.Networks` (measured on podman 5.8.6,
1497
+ * aarch64). Comparing the mode alone would report drift and recreate such
1498
+ * a container on every `ensureRunning`. On podman a requested network
1499
+ * therefore also matches when the container is attached to it.
1500
+ */
1501
+ function networkModeMatches(requested, live, runtime) {
1502
+ const want = canonicalNetworkMode(requested);
1503
+ const have = canonicalNetworkMode(live.networkMode);
1504
+ if (want === have)
1505
+ return true;
1506
+ return (runtime.runtime === "podman" && have === "" && live.networks.includes(want));
1507
+ }
1421
1508
  /**
1422
1509
  * A `container:<id>` network mode shares another container's netns. Docker
1423
1510
  * rejects ExtraHosts in that mode ("conflicting options: custom host-to-IP
@@ -1510,6 +1597,9 @@ function sortedStringArraysEqual(a, b) {
1510
1597
  * told apart from "image's baked CMD" so we skip.
1511
1598
  * - networkMode: runtime defaults (`bridge`, `slirp4netns`, etc.) are
1512
1599
  * normalized to `""` and compared as equivalent to requested undefined.
1600
+ * On podman, which reports `bridge` for user-defined networks as well,
1601
+ * a requested network also matches when the container is attached to
1602
+ * it (`networkModeMatches`).
1513
1603
  * - env: requested keys must match live values. Additionally, any key
1514
1604
  * present in the prior env but absent from `requested.env` is treated
1515
1605
  * as drift (the user is unsetting it). Image-baked env keys in neither
@@ -1563,8 +1653,7 @@ export function diffContainerConfig(requested, live, runtime, prior) {
1563
1653
  // image default back. Recreate so the runtime drops the override.
1564
1654
  drifted.push("command");
1565
1655
  }
1566
- if (canonicalNetworkMode(requested.networkMode) !==
1567
- canonicalNetworkMode(live.networkMode)) {
1656
+ if (!networkModeMatches(requested.networkMode, live, runtime)) {
1568
1657
  drifted.push("networkMode");
1569
1658
  }
1570
1659
  let envDrift = false;
@@ -2386,7 +2475,7 @@ prior, _postRecreate = false, _pull = pullImage) {
2386
2475
  // the config-drift and digest-drift paths so both survive the wedge.
2387
2476
  const recreateUnlessWedged = async (driftDesc) => {
2388
2477
  try {
2389
- await removeContainer(runtime, name, client);
2478
+ await removeContainer(runtime, name, client, { graceful: true });
2390
2479
  }
2391
2480
  catch (err) {
2392
2481
  if (err instanceof ContainerRemovalError &&
@@ -2943,17 +3032,25 @@ export async function stopContainer(runtime, name, client = getClient()) {
2943
3032
  }
2944
3033
  }
2945
3034
  }
2946
- export async function removeContainer(runtime, name, client = getClient()) {
3035
+ export async function removeContainer(runtime, name, client = getClient(), options = {}) {
2947
3036
  const fullName = prefixedName(name);
2948
3037
  await fixVolumePermissions(runtime, name, client).catch(() => { });
2949
- // `t: 0`: skip the runtime's default 10s SIGTERM grace and SIGKILL
2950
- // immediately. removeContainer is the destructive primitive — callers
2951
- // that want graceful shutdown call containers.stop() instead. A
2952
- // container whose PID 1 ignores SIGTERM (busybox `sleep`, `tail`, …)
2953
- // would otherwise hold the stop for ~10s. We tolerate stop failures
2954
- // (already stopped / 304 / not running) and rely on `remove({force})`
2955
- // as the authoritative step. Works on both podman and docker.
2956
- await safe(() => client.getContainer(fullName).stop({ t: 0 }));
3038
+ // Without `graceful`, `t: 0` skips the runtime's SIGTERM grace and
3039
+ // SIGKILLs immediately: a container whose PID 1 ignores SIGTERM (busybox
3040
+ // `sleep`, `tail`, …) would otherwise hold the stop for the full stop
3041
+ // timeout. We tolerate stop failures (already stopped / 304 / not
3042
+ // running) and rely on `remove({force})` as the authoritative step.
3043
+ // Works on both podman and docker.
3044
+ const stopped = await safe(() => client.getContainer(fullName).stop(options.graceful ? {} : { t: 0 }));
3045
+ // Except after a graceful stop the runtime refused: `remove({force})`
3046
+ // would then kill the still-running container, which is what `graceful`
3047
+ // asked to avoid. The stop error carries its kind like a remove error, so
3048
+ // a rootless wedge (EPERM) still reaches the caller as `permission`.
3049
+ if (options.graceful &&
3050
+ !stopped.ok &&
3051
+ (await getContainerState(runtime, name, client)) === "running") {
3052
+ throw new ContainerRemovalError(`Failed to stop ${fullName}: ${messageWithRaw(stopped.error.userMessage, stopped.error.raw)}`, stopped.error.kind, { cause: stopped.error });
3053
+ }
2957
3054
  const result = await safe(() => client.getContainer(fullName).remove({ force: true }));
2958
3055
  // 404 = already gone; that's success for a remove.
2959
3056
  if (!result.ok && result.error.kind !== "not-found") {
@@ -3139,7 +3236,7 @@ export async function pruneImages(runtime, client = getClient()) {
3139
3236
  const removed = deleted.filter((d) => d.Deleted).length;
3140
3237
  return {
3141
3238
  imagesRemoved: removed,
3142
- spaceReclaimed: bytesToString(result.value.SpaceReclaimed ?? 0),
3239
+ spaceReclaimed: formatByteSize(result.value.SpaceReclaimed ?? 0),
3143
3240
  };
3144
3241
  }
3145
3242
  /**
@@ -3270,8 +3367,9 @@ export function selectImagesToReap(images, managed, keepImageVersions) {
3270
3367
  */
3271
3368
  export async function reapSupersededImages(runtime, managed, keepImageVersions, client = getClient()) {
3272
3369
  const listed = await safe(() => client.listImages());
3273
- if (!listed.ok)
3274
- return { imagesRemoved: 0, spaceReclaimed: "0b" };
3370
+ if (!listed.ok) {
3371
+ return { imagesRemoved: 0, spaceReclaimed: formatByteSize(0) };
3372
+ }
3275
3373
  // The `Containers` field on a listImages summary is unreliable across
3276
3374
  // runtimes — Docker returns -1 ("not computed") by default, which would
3277
3375
  // make every image look in-use. Derive the in-use set authoritatively
@@ -3312,7 +3410,7 @@ export async function reapSupersededImages(runtime, managed, keepImageVersions,
3312
3410
  reclaimed += bySize.get(id) ?? 0;
3313
3411
  }
3314
3412
  }
3315
- return { imagesRemoved: removed, spaceReclaimed: bytesToString(reclaimed) };
3413
+ return { imagesRemoved: removed, spaceReclaimed: formatByteSize(reclaimed) };
3316
3414
  }
3317
3415
  /**
3318
3416
  * One scheduled cleanup pass. Reaps superseded managed versions first: