This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new d57093ec68c Easier to copy-paste command for Windows (#418)
d57093ec68c is described below
commit d57093ec68c9c436d73d6fac088a20f32be1c082
Author: Yanislav Vasilev <[email protected]>
AuthorDate: Thu Feb 16 17:52:59 2023 +0200
Easier to copy-paste command for Windows (#418)
---
docs/getting-started-docker.md | 12 ++----------
versioned_docs/version-2.11.x/getting-started-docker.md | 12 ++----------
2 files changed, 4 insertions(+), 20 deletions(-)
diff --git a/docs/getting-started-docker.md b/docs/getting-started-docker.md
index f8afda94b82..a94b2fd3eff 100644
--- a/docs/getting-started-docker.md
+++ b/docs/getting-started-docker.md
@@ -13,21 +13,13 @@ If you have not installed Docker, download the [Community
edition](https://www.d
For macOS, Linux, and Windows, run the following command to start Pulsar
within a Docker container.
```shell
-docker run -it -p 6650:6650 -p 8080:8080 \
- --mount source=pulsardata,target=/pulsar/data \
- --mount source=pulsarconf,target=/pulsar/conf \
- apachepulsar/pulsar:@pulsar:version@ bin/pulsar standalone
+docker run -it -p 6650:6650 -p 8080:8080 --mount
source=pulsardata,target=/pulsar/data --mount
source=pulsarconf,target=/pulsar/conf apachepulsar/pulsar:@pulsar:version@
bin/pulsar standalone
```
If you want to change Pulsar configurations and start Pulsar, run the
following command by passing environment variables with the `PULSAR_PREFIX_`
prefix. See [default configuration
file](https://github.com/apache/pulsar/blob/e6b12c64b043903eb5ff2dc5186fe8030f157cfc/conf/standalone.conf)
for more details.
```shell
-docker run -it -e PULSAR_PREFIX_xxx=yyy \
- -p 6650:6650 -p 8080:8080 \
- --mount source=pulsardata,target=/pulsar/data \
- --mount source=pulsarconf,target=/pulsar/conf \
- apachepulsar/pulsar:2.10.0 \
- sh -c "bin/apply-config-from-env.py conf/standalone.conf && bin/pulsar
standalone"
+docker run -it -e PULSAR_PREFIX_xxx=yyy -p 6650:6650 -p 8080:8080 --mount
source=pulsardata,target=/pulsar/data --mount
source=pulsarconf,target=/pulsar/conf apachepulsar/pulsar:2.10.0 sh -c
"bin/apply-config-from-env.py conf/standalone.conf && bin/pulsar standalone"
```
:::tip
diff --git a/versioned_docs/version-2.11.x/getting-started-docker.md
b/versioned_docs/version-2.11.x/getting-started-docker.md
index 04358ccf74c..5a14dab983a 100644
--- a/versioned_docs/version-2.11.x/getting-started-docker.md
+++ b/versioned_docs/version-2.11.x/getting-started-docker.md
@@ -13,21 +13,13 @@ If you have not installed Docker, download the [Community
edition](https://www.d
For macOS, Linux, and Windows, run the following command to start Pulsar
within a Docker container.
```shell
-docker run -it -p 6650:6650 -p 8080:8080 \
- --mount source=pulsardata,target=/pulsar/data \
- --mount source=pulsarconf,target=/pulsar/conf \
- apachepulsar/pulsar:@pulsar:version@ bin/pulsar standalone
+docker run -it -p 6650:6650 -p 8080:8080 --mount
source=pulsardata,target=/pulsar/data --mount
source=pulsarconf,target=/pulsar/conf
apachepulsar/pulsar:@pulsar:version@bin/pulsar standalone
```
If you want to change Pulsar configurations and start Pulsar, run the
following command by passing environment variables with the `PULSAR_PREFIX_`
prefix. See [default configuration
file](https://github.com/apache/pulsar/blob/e6b12c64b043903eb5ff2dc5186fe8030f157cfc/conf/standalone.conf)
for more details.
```shell
-docker run -it -e PULSAR_PREFIX_xxx=yyy \
- -p 6650:6650 -p 8080:8080 \
- --mount source=pulsardata,target=/pulsar/data \
- --mount source=pulsarconf,target=/pulsar/conf \
- apachepulsar/pulsar:2.11.0 \
- sh -c "bin/apply-config-from-env.py conf/standalone.conf && bin/pulsar
standalone"
+docker run -it -e PULSAR_PREFIX_xxx=yyy -p 6650:6650 -p 8080:8080 --mount
source=pulsardata,target=/pulsar/data --mount
source=pulsarconf,target=/pulsar/conf apachepulsar/pulsar:2.11.0 sh -c
"bin/apply-config-from-env.py conf/standalone.conf && bin/pulsar standalone"
```
:::tip