PostgreSQL-focused CLI assistant for deterministic diagnostics
2.3K
Image repository: ohanalabs/pgmind
Recommended (pinned release tag):
docker pull ohanalabs/pgmind:v0.1.19
Fast track (latest):
docker pull ohanalabs/pgmind:latest
Check local image:
docker image ls ohanalabs/pgmind
The image entrypoint is pgmind, so you can run CLI commands directly:
docker run --rm ohanalabs/pgmind:latest --help
docker run --rm ohanalabs/pgmind:latest check-catalog --output json
Pass runtime settings via -e (or --env-file):
docker run --rm \
-e PGMIND_RUNTIME_PROFILE=production \
-e PGMIND_DB_DSN="postgresql://user:pass@host:5432/dbname" \
-e PGMIND_DB_CONNECT_TIMEOUT=5 \
-e PGMIND_DB_STATEMENT_TIMEOUT_MS=10000 \
ohanalabs/pgmind:latest check security --scope all --output json
Using .env file:
docker run --rm --env-file ./.env ohanalabs/pgmind:latest monitor --output json
The runtime user works under /opt/pgmind. Mount your local folder there to read inputs and persist outputs:
docker run --rm \
--env-file ./.env \
-v "$PWD:/opt/pgmind" \
ohanalabs/pgmind:latest explain-file ./query.sql --output json
Migration with rollback artifacts:
docker run --rm \
--env-file ./.env \
-v "$PWD:/opt/pgmind" \
ohanalabs/pgmind:latest migration \
--file ./migration.sql \
--rollback-output-dir ./rollback \
--strict --fail-on error --output json
To open an interactive shell:
docker run --rm -it --entrypoint bash ohanalabs/pgmind:latest
With mounted workspace:
docker run --rm -it \
--entrypoint bash \
-v "$PWD:/opt/pgmind" \
ohanalabs/pgmind:latest
Inside the shell:
id
pwd
pgmind --help
Notes:
pgmind)./opt/pgmind.Run deterministic checks:
docker run --rm --env-file ./.env ohanalabs/pgmind:latest check autovacuum --scope selected --output text
docker run --rm --env-file ./.env ohanalabs/pgmind:latest check analyze --scope all --output json
docker run --rm --env-file ./.env ohanalabs/pgmind:latest check security --scope all --output json
Run monitor:
docker run --rm \
--env-file ./.env \
-v "$PWD:/opt/pgmind" \
ohanalabs/pgmind:latest monitor --scope selected --output json
database connection error:
PGMIND_DB_DSN, network route, credentials, and server reachability.runtime_config_error:
explain-file or migration --file:
-v "$PWD:/opt/pgmind" and use relative file path from /opt/pgmind./opt/pgmind.--env-file.Changes delivered by ohanalabs.
CRITICAL and HIGH vulnerabilities.MEDIUM/LOW findings are tracked by explicit exceptions with owner and expiry.SECURITY.md.Content type
Image
Digest
sha256:9861bdae0…
Size
66.1 MB
Last updated
6 months ago
docker pull ohanalabs/pgmind