You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by si...@apache.org on 2018/12/16 08:24:06 UTC
[pulsar] branch master updated: Error open RocksDB database in
docker for windows (#3198)
This is an automated email from the ASF dual-hosted git repository.
sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 41e8e66 Error open RocksDB database in docker for windows (#3198)
41e8e66 is described below
commit 41e8e66b3e5db880b85fe0fe66327bbeb48a5fc7
Author: ForwardXu <x1...@163.com>
AuthorDate: Sun Dec 16 16:24:02 2018 +0800
Error open RocksDB database in docker for windows (#3198)
### 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.
---
site/docs/latest/getting-started/docker.md | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/site/docs/latest/getting-started/docker.md b/site/docs/latest/getting-started/docker.md
index 6e1220f..6913a06 100644
--- a/site/docs/latest/getting-started/docker.md
+++ b/site/docs/latest/getting-started/docker.md
@@ -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.