Run this script to initialise a cluster: docker exec -it <container_id> ./cockroach init --insecure https://www.cockroachlabs.com/docs/stable/start-a-local-cluster-in-docker-mac.html