fix(cli)!: stop using the default instance for a missing container

status no longer probes the default instance for a named container with no known
endpoint, and env, services, snapshot and az setup exit 1 with the next step
instead of acting on it. wait keeps looking for the container until --timeout, and
doctor and version still run. A profile's port is used before its container
starts, and an endpoint from --endpoint, FLOCI_ENDPOINT or another host beats a
local container's published port.

BREAKING CHANGE: in status -o json, endpoint is null when the selected container
has no known endpoint. env, services, snapshot and az setup exit 1 in that case,
where they used to use the default endpoint. An --endpoint or FLOCI_ENDPOINT on
the default port is now honoured even when a local container publishes another
port.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
This commit is contained in:
Hector Ventura committed 2026-11-03 23:53:22 -06:00
1 parent ac52515471
commit 33367ecb9b
17 files changed
+469 -57

No files matched your search

+11
View File
@@ -489,6 +489,17 @@ stdout: the progress lines are left out and docker's pull progress goes to stder
`restart` report `container`, `id`, `image`, `endpoint`, `state` and `ready` (`ready` is absent
with `--detach`). `logs` prints the container's own output and stays plain text.
A selected container with no published port and no configured endpoint has no known endpoint.
`status` does not probe the default instance and reports `endpoint: null` in structured output.
`env`, `services`, `az setup` and the `snapshot` commands exit `1` with the next step rather than
act on the default instance. `doctor` and `version` still run and do not probe it. `wait` keeps
looking for the container until `--timeout`.
A profile's `port` supplies its endpoint when the endpoint is unset or still the product default.
A running container's published port corrects that endpoint, unless the endpoint was chosen on
purpose: typed with `--endpoint`, set in `FLOCI_ENDPOINT`, or on another host. `env` warns on stderr
when it looked the container up and it is not running.
### `floci status` / `floci gcp status` / `floci az status` / `floci oci status`
```sh