sijie closed pull request #3201: Error open RocksDB database in docker for 
windows
URL: https://github.com/apache/pulsar/pull/3201
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/site/docs/latest/getting-started/docker.md 
b/site/docs/latest/getting-started/docker.md
index 6e1220f70c..6913a06418 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.
diff --git a/site2/docs/getting-started-docker.md 
b/site2/docs/getting-started-docker.md
index a045df1e57..f343dd9683 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 56ecd51bd4..1401df30a3 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.


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to