/docker-examples

CockroachDB examples using Docker and Docker Compose

Primary LanguageShell

CockroachDB Docker Examples

Examples

Useful commands

Generate and Download Debug Archive

Generate debug.zip file on crdb-0. For more details see https://www.cockroachlabs.com/docs/stable/debug-zip.html

docker compose exec crdb-0 /cockroach/cockroach debug zip ./cockroach-data/logs/debug.zip --insecure

Copy debug.zip from crdb-0 to current local directory

docker cp crdb-0:/cockroach/cockroach-data/logs/debug.zip .

Prune Docker Images, etc.

Prune all images matching label

docker system prune -a -f --volumes --filter "label=maintainer=tjveil@gmail.com"

Prune all images

docker system prune -a -f --volumes