Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions deploy/docker/Dockerfile.supervisor
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ COPY --chmod=0555 deploy/docker/.build/prebuilt-binaries/${TARGETARCH}/openshell

USER 65534:65534

HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 \
CMD ["/openshell-supervisor", "health", "--socket", "/run/openshell/health.sock"]

ENTRYPOINT ["/openshell-supervisor"]
10 changes: 10 additions & 0 deletions docs/how-it-works/sandboxes/runtimes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ The supervisor image defaults to UID/GID `65534:65534`, including with a custom
base. Compute drivers select the runtime identity explicitly. For direct image
launches, make mounted runtime and log directories writable by the selected user.

The supervisor image healthcheck connects to `/run/openshell/health.sock`.
A dedicated supervisor opens this socket only when started with
`--health-socket-path=/run/openshell/health.sock` and its sandbox session is ready.
Docker and Podman set their own probes to match the socket they configure;
Kubernetes uses TCP probes instead of the image healthcheck. For direct image
launches using another Unix socket, override the probe's `--socket` argument.
For direct shared-supervisor or network-proxy launches, disable the inherited
check with `docker run --no-healthcheck` and monitor readiness externally.
The shell-free image has no TCP or proxy health-probe command.

For TLS-enabled Docker, Podman, and MicroVM gateways, set `guest_tls_ca` in
`[openshell.gateway]` or use the package-managed local CA. Remove the retired
`guest_tls_cert` and `guest_tls_key` fields. Supervisors receive only the
Expand Down
10 changes: 10 additions & 0 deletions skills/debug-openshell-cluster/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,16 @@ are unavailable. Workload shells belong to the separate sandbox image. Preserve
the driver-selected UID and writable runtime/log mounts when reproducing a
supervisor startup failure.

The image's exec healthcheck uses `/run/openshell/health.sock`. Docker and
Podman override it to match their configured readiness sockets; Kubernetes
uses its own TCP probes. On a direct image launch, check that the image probe
matches the explicitly configured `--health-socket-path`; a dedicated
supervisor does not create a readiness socket unless this flag is set.
For direct shared or network-proxy launches, use `docker run --no-healthcheck`
and monitor readiness externally: the shell-free image's native probe supports
only Unix sockets. The dedicated readiness socket closes when the
supervisor session becomes unready, so a stale socket file is not sufficient.

A `ConfigurationInvalid` readiness condition means startup admission rejected
the image/effective policy or provider configuration. The supervisor remains
alive while the workload stays unstarted. Inspect `openshell sandbox get` and
Expand Down
Loading