This is my series of articles covering short "Today I learned" topics as I work with CockroachDB. Previous articles Volume 1 Volume 2 Volume 3 Volume 4 Volume 5 Volume 6 Volume 7 Topics Topic 1: Cockroach Init container Topic 2: Chain column's schema changes into a single statement Topic 3: Turn off fsync (UNSAFE) Topic 4: Use pgpass with Java pgjdbc driver Topic 5: Avoid cruft with cockroach demo Topic 1: Cockroach Init container Use init container to initialize Cockroach and exit, you no longer need to explicitly run init when you bring up CockroachDB. version: '3.9' services: roach-0: container_name: roach-0 hostname: roach-0 image: cockroachdb/cockroach:v21.2.4 command : start --logtostderr=WARNING --log-file-verbosity=WARNING --insecure -- join =roach-0,roach-1,roach-2 --listen-addr=roach-0:26257 --advertise-addr=roach-0:26257 --max-sql-memory=.25 --cache=.25 ports: - 26257:26257 - 8080:8080 ...