|
@@ -6,20 +6,30 @@ Crate allows to query and compute data with SQL in real time by providing a dist
|
|
|
|
|
|
|
|
%%LOGO%%
|
|
%%LOGO%%
|
|
|
|
|
|
|
|
|
|
+## Crate on Docker
|
|
|
|
|
+
|
|
|
|
|
+Learn more about Crate and Docker and visit our [Docker page](https://crate.io/c/docker) at [crate.io](https://crate.io). You can also contact us on [Slack](https://crate.io/docs/support/slackin/).
|
|
|
|
|
+
|
|
|
## How to use this image
|
|
## How to use this image
|
|
|
|
|
|
|
|
|
|
+Simply run the latest Crate version in a Docker container with the following command. Crate ships with an [Admin UI](https://crate.io/docs/connect/admin_ui/) that provides an overview of your cluster, nodes, tables and much more. With the above command it is accessible via port `4200`.
|
|
|
|
|
+
|
|
|
```console
|
|
```console
|
|
|
$ docker run -d -p 4200:4200 -p 4300:4300 crate:latest
|
|
$ docker run -d -p 4200:4200 -p 4300:4300 crate:latest
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
### Attach persistent data directory
|
|
### Attach persistent data directory
|
|
|
|
|
|
|
|
|
|
+If you want to attach a persistent data directory, add the following parameter.
|
|
|
|
|
+
|
|
|
```console
|
|
```console
|
|
|
$ docker run -d -p 4200:4200 -p 4300:4300 -v <data-dir>:/data crate
|
|
$ docker run -d -p 4200:4200 -p 4300:4300 -v <data-dir>:/data crate
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
### Use custom Crate configuration
|
|
### Use custom Crate configuration
|
|
|
|
|
|
|
|
|
|
+Use the following parameter to provide your custom [Crate configuration file](https://crate.io/docs/reference/configuration.html).
|
|
|
|
|
+
|
|
|
```console
|
|
```console
|
|
|
$ docker run -d -p 4200:4200 -p 4300:4300 crate -Des.config=/path/to/crate.yml
|
|
$ docker run -d -p 4200:4200 -p 4300:4300 crate -Des.config=/path/to/crate.yml
|
|
|
```
|
|
```
|
|
@@ -30,8 +40,6 @@ Any configuration settings may be specified upon startup using the `-D` option p
|
|
|
$ docker run -d -p 4200:4200 -p 4300:4300 crate crate -Des.cluster.name=cluster
|
|
$ docker run -d -p 4200:4200 -p 4300:4300 crate crate -Des.cluster.name=cluster
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-For further configuration options please refer to the [Configuration](https://crate.io/docs/stable/configuration.html) section of the online documentation.
|
|
|
|
|
-
|
|
|
|
|
### Environment
|
|
### Environment
|
|
|
|
|
|
|
|
To set environment variables for Crate Data you need to use the `--env` option when starting the docker image.
|
|
To set environment variables for Crate Data you need to use the `--env` option when starting the docker image.
|