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/17 13:12:24 UTC
[pulsar] branch master updated: Error open RocksDB database in
docker for windows (#3201)
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 b6c25ed Error open RocksDB database in docker for windows (#3201)
b6c25ed is described below
commit b6c25ed0ea07de571455cca830f3a9879998a803
Author: ForwardXu <x1...@163.com>
AuthorDate: Mon Dec 17 21:12:19 2018 +0800
Error open RocksDB database in docker for windows (#3201)
### 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.
---
site2/docs/getting-started-docker.md | 14 +++++++++++++-
.../version-2.1.0-incubating/getting-started-docker.md | 14 +++++++++++++-
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/site2/docs/getting-started-docker.md b/site2/docs/getting-started-docker.md
index a045df1..f343dd9 100644
--- a/site2/docs/getting-started-docker.md
+++ b/site2/docs/getting-started-docker.md
@@ -17,11 +17,23 @@ $ docker run -it \
-p 6650:6650 \
-p 8080:8080 \
-v $PWD/data:/pulsar/data \
- apachepulsar/pulsar:{{pulsar:version}} \
+ apachepulsar/pulsar:{{site.current_version}} \
+ 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.
diff --git a/site2/website/versioned_docs/version-2.1.0-incubating/getting-started-docker.md b/site2/website/versioned_docs/version-2.1.0-incubating/getting-started-docker.md
index 56ecd51..1401df3 100644
--- a/site2/website/versioned_docs/version-2.1.0-incubating/getting-started-docker.md
+++ b/site2/website/versioned_docs/version-2.1.0-incubating/getting-started-docker.md
@@ -18,11 +18,23 @@ $ docker run -it \
-p 6650:6650 \
-p 8080:8080 \
-v $PWD/data:/pulsar/data \
- apachepulsar/pulsar:{{pulsar:version}} \
+ apachepulsar/pulsar:{{site.current_version}} \
+ 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.