Skip to content

Commit

Permalink
Error open RocksDB database in docker for windows (apache#3198)
Browse files Browse the repository at this point in the history
### Motivation

To solve the error open RocksDB database in docker for windows

### Modifications

```shell
$ docker run -it \
  -p 6650:6650 \
  -p 8080:8080 \
  -v "E:/data:/pulsar/data".ToLower() \
  apachepulsar/pulsar:{{site.current_version}} \
  bin/pulsar standalone
```

### Result

Have no effect on.
  • Loading branch information
XuQianJin-Stars authored and sijie committed Dec 16, 2018
1 parent 2ccf7ff commit 41e8e66
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions site/docs/latest/getting-started/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,19 @@ $ docker run -it \
bin/pulsar standalone
```

Under Windows, you should use something like the following docker command:

```shell
$ docker run -it \
-p 6650:6650 \
-p 8080:8080 \
-v "$PWD/data:/pulsar/data".ToLower() \
apachepulsar/pulsar:{{site.current_version}} \
bin/pulsar standalone
```

A few things to note about this command:
* `$PWD/data` : The docker host directory under the Windows operating system must be lowercase.`$PWD/data` can provide you with the specified directory, for example: `E:/data`.
* `-v $PWD/data:/pulsar/data`: This will make the process inside the container to store the
data and metadata in the filesystem outside the container, in order to not start "fresh" every
time the container is restarted.
Expand Down

0 comments on commit 41e8e66

Please sign in to comment.