Skip to main content
To try CockroachDB Cloud instead of running CockroachDB yourself, refer to the . See for what’s new in the latest release, . To upgrade to this release from an older version, see . Use one of the options below to install CockroachDB. To install a FIPS-compliant CockroachDB binary, refer to . CockroachDB on ARM is experimental in CockroachDB v23.1 versions prior to v23.1.14, and is in v23.1.14 and above. Experimental binaries and Docker images are not qualified for production use and not eligible for support or uptime SLA commitments. For limitations specific to ARM, refer to Limitations.

Download the binary

The CockroachDB binary for Linux requires glibc, libncurses, and tzdata, which are found by default on nearly all Linux distributions, with Alpine as the notable exception.
  1. Visit to download the CockroachDB archive for the architecture of your Linux host. The archive contains the cockroach binary and the supporting libraries that are used to provide . Extract the archive and optionally copy the cockroach binary into your PATH so you can execute from any shell. If you get a permission error, use sudo.
If you plan to use CockroachDB’s , you must complete the following steps. Otherwise, your installation is now complete.
  1. CockroachDB uses custom-built versions of the libraries. Copy these libraries to one of the locations where CockroachDB expects to find them. By default, CockroachDB looks for external libraries in /usr/local/lib/cockroach or a lib subdirectory of the CockroachDB binary’s current directory. If you place these libraries in another location, you must pass the location in the . The instructions below assume the /usr/local/lib/cockroach location.
    1. Create the directory where the external libraries will be stored:
    2. Copy the library files to the directory. In the following commands, replace ARCHITECTURE with linux-amd64 for Intel, or with linux-arm64 for ARM.
      If you get a permissions error, prefix the command with sudo.
  2. Verify that CockroachDB can execute spatial queries.
    1. Make sure the cockroach binary you just installed is the one that runs when you type cockroach in your shell:
    2. Start a temporary, in-memory cluster using :
      • In the demo cluster’s interactive SQL shell, run the following command to test that the spatial libraries have loaded properly:
        You should see the following output:
        If your cockroach binary is not properly accessing the dynamically linked C libraries in /usr/local/lib/cockroach, it will output an error message like the one below.
  • Keep up-to-date with CockroachDB releases and best practices:

Use Kubernetes

To orchestrate CockroachDB using Kubernetes, either with configuration files or the Helm package manager, use the following tutorials:

Use Docker

For CockroachDB v22.2.beta-5 and above, Docker images are multi-platform images that contain binaries for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host. Docker images for previous releases contain Intel binaries only. Intel binaries can run on ARM systems, but with a significant reduction in performance. CockroachDB on ARM is in in v22.2.13, and is experimental in all other versions. Experimental images are not qualified for production use and not eligible for support or uptime SLA commitments.
  1. Install Docker for Linux. Please carefully check that you meet all prerequisites.
  2. Confirm that the Docker daemon is running in the background:
    If you do not see the server listed, start the Docker daemon.
  3. Pull the image for the release of CockroachDB from Docker Hub:
  4. Keep up-to-date with CockroachDB releases and best practices:

Build from Source

See the public wiki for guidance. When building on the ARM architecture, refer to Limitations.

Limitations

CockroachDB runtimes built for the ARM architecture have the following limitations:
  • CockroachDB on ARM is experimental in CockroachDB v23.1 versions prior to v23.1.14, and is Generally Available (GA) in v23.1.14 and above. Experimental binaries and Docker images are not qualified for production use and not eligible for support or uptime SLA commitments.
  • Floating point operations may yield different results on ARM than on Intel, particularly Fused Multiply Add (FMA) intrinsics. Validate workloads that rely on floating point operations or FMA instrincs before migrating those workloads to ARM in production. When building from source on ARM, it is not currently possible to disable FMA intrinsics in Go. To track the status of this feature request, refer to GoLang issue #36971.
  • In production, Cockroach Labs recommends that all cluster nodes have identical CockroachDB versions, CPU architecture, hardware, and software.
  • A mix of Intel and ARM nodes is supported as a temporary transitional state during the migration only. Cockroach Labs recommends that you test and validate your workload ahead of the migration to ensure that the workload and your application work as expected in a cluster with both Intel and ARM nodes, especially with respect to floating-point arithmetic.

What’s next?

  • If you’re just getting started with CockroachDB:
    • and talk to it via the built-in SQL client
    • with CockroachDB using PostgreSQL-compatible client drivers and ORMs
    • like automatic replication, rebalancing, and fault tolerance
  • If you’re ready to run CockroachDB in production:
    • Review the
    • or