Run CrateDB on Docker

CrateDB and Docker are a great match thanks to CrateDB’s shared-nothing, horizontally scalable architecture that lends itself well to containerization.

Spin up the official CrateDB Docker image, like so:

sh$ docker run -p 4200:4200 crate


This command will get you up and running for the first time.

By default, the CrateDB Docker image stores data inside the container. If you delete the container, the data will be deleted along with it. When you’re ready to start using CrateDB for data that you care about, you should consult the full guide to CrateDB and Docker.

If you encounter bootstrap check errors, consult the section on Docker resource constraints.

See also

Now you have CrateDB up and running, check out the First Use section.