make preflight
Run the host pre-flight checks only. No container, no changes.
Usage
make preflight
What it checks
The host-side scripts/preflight_cli.sh, without touching any container.
- Docker is installed.
- The Docker daemon is reachable without
sudo. - Docker Compose v2 (
docker compose) is available. ~/.gitconfigand~/.sshare sane for bind-mounting.- The workspace
.env. Duplicate/malformed keys, stale host path, dangling product, drift from the template (same logic asmake env-check).
Exit code is 1 if a hard problem is found, 0 otherwise.
A workspace
.envthat does not exist yet is not a failure here. Before the firstmake setupthere is no.env, so the pre-flight prints an info line and passes:• .env not created yet (make setup creates it from .env.example)Only the standalone
make env-checktreats a missing.envas an error.
When to use
To diagnose your machine before running make setup, e.g.
to confirm Docker is up and your .env is healthy without starting anything.
The lifecycle targets (setup,
docker-up, cli) run this pre-flight
automatically. make preflight is just the standalone, read-only version.
Related
make env-check. Only the.envportion.splent doctor. Deeper diagnostics from inside the container.