From 48636b3a6e15819e58d111c610fb6566a83b9b53 Mon Sep 17 00:00:00 2001 From: helloshisheng <39355623+helloshisheng@users.noreply.github.com> Date: Mon, 29 Apr 2024 03:26:11 +0800 Subject: [PATCH] add break line in the command (#879) --- docs/deploy-docker.md | 11 ++++++++++- versioned_docs/version-3.0.x/deploy-docker.md | 11 ++++++++++- versioned_docs/version-3.1.x/deploy-docker.md | 11 ++++++++++- versioned_docs/version-3.2.x/deploy-docker.md | 11 ++++++++++- 4 files changed, 40 insertions(+), 4 deletions(-) diff --git a/docs/deploy-docker.md b/docs/deploy-docker.md index baf1de1a7af7..9e82f616d807 100644 --- a/docs/deploy-docker.md +++ b/docs/deploy-docker.md @@ -77,5 +77,14 @@ docker run -d -e clusterName=cluster-a \ Create a broker container and start the broker service. ```bash -docker run -d -p 6650:6650 -p 8080:8080 --net=pulsar -e metadataStoreUrl=zk:zookeeper:2181 -e zookeeperServers=zookeeper:2181 -e clusterName=cluster-a -e managedLedgerDefaultEnsembleSize=1 -e managedLedgerDefaultWriteQuorum=1 -e managedLedgerDefaultAckQuorum=1 --name broker --hostname broker apachepulsar/pulsar-all:latest bash -c "bin/apply-config-from-env.py conf/broker.conf && exec bin/pulsar broker" +docker run -d -p 6650:6650 -p 8080:8080 --net=pulsar \ + -e metadataStoreUrl=zk:zookeeper:2181 \ + -e zookeeperServers=zookeeper:2181 \ + -e clusterName=cluster-a \ + -e managedLedgerDefaultEnsembleSize=1 \ + -e managedLedgerDefaultWriteQuorum=1 \ + -e managedLedgerDefaultAckQuorum=1 \ + --name broker --hostname broker \ + apachepulsar/pulsar-all:latest \ + bash -c "bin/apply-config-from-env.py conf/broker.conf && exec bin/pulsar broker" ``` diff --git a/versioned_docs/version-3.0.x/deploy-docker.md b/versioned_docs/version-3.0.x/deploy-docker.md index 3b3367162e8e..7cccffb74c92 100644 --- a/versioned_docs/version-3.0.x/deploy-docker.md +++ b/versioned_docs/version-3.0.x/deploy-docker.md @@ -79,5 +79,14 @@ docker run -d -e clusterName=cluster-a \ Create a broker container and start the broker service. ```bash -docker run -d -p 6650:6650 -p 8080:8080 --net=pulsar -e metadataStoreUrl=zk:zookeeper:2181 -e zookeeperServers=zookeeper:2181 -e clusterName=cluster-a -e managedLedgerDefaultEnsembleSize=1 -e managedLedgerDefaultWriteQuorum=1 -e managedLedgerDefaultAckQuorum=1 --name broker --hostname broker apachepulsar/pulsar-all:latest bash -c "bin/apply-config-from-env.py conf/broker.conf && exec bin/pulsar broker" +docker run -d -p 6650:6650 -p 8080:8080 --net=pulsar \ + -e metadataStoreUrl=zk:zookeeper:2181 \ + -e zookeeperServers=zookeeper:2181 \ + -e clusterName=cluster-a \ + -e managedLedgerDefaultEnsembleSize=1 \ + -e managedLedgerDefaultWriteQuorum=1 \ + -e managedLedgerDefaultAckQuorum=1 \ + --name broker --hostname broker \ + apachepulsar/pulsar-all:latest \ + bash -c "bin/apply-config-from-env.py conf/broker.conf && exec bin/pulsar broker" ``` diff --git a/versioned_docs/version-3.1.x/deploy-docker.md b/versioned_docs/version-3.1.x/deploy-docker.md index 3b3367162e8e..7cccffb74c92 100644 --- a/versioned_docs/version-3.1.x/deploy-docker.md +++ b/versioned_docs/version-3.1.x/deploy-docker.md @@ -79,5 +79,14 @@ docker run -d -e clusterName=cluster-a \ Create a broker container and start the broker service. ```bash -docker run -d -p 6650:6650 -p 8080:8080 --net=pulsar -e metadataStoreUrl=zk:zookeeper:2181 -e zookeeperServers=zookeeper:2181 -e clusterName=cluster-a -e managedLedgerDefaultEnsembleSize=1 -e managedLedgerDefaultWriteQuorum=1 -e managedLedgerDefaultAckQuorum=1 --name broker --hostname broker apachepulsar/pulsar-all:latest bash -c "bin/apply-config-from-env.py conf/broker.conf && exec bin/pulsar broker" +docker run -d -p 6650:6650 -p 8080:8080 --net=pulsar \ + -e metadataStoreUrl=zk:zookeeper:2181 \ + -e zookeeperServers=zookeeper:2181 \ + -e clusterName=cluster-a \ + -e managedLedgerDefaultEnsembleSize=1 \ + -e managedLedgerDefaultWriteQuorum=1 \ + -e managedLedgerDefaultAckQuorum=1 \ + --name broker --hostname broker \ + apachepulsar/pulsar-all:latest \ + bash -c "bin/apply-config-from-env.py conf/broker.conf && exec bin/pulsar broker" ``` diff --git a/versioned_docs/version-3.2.x/deploy-docker.md b/versioned_docs/version-3.2.x/deploy-docker.md index baf1de1a7af7..9e82f616d807 100644 --- a/versioned_docs/version-3.2.x/deploy-docker.md +++ b/versioned_docs/version-3.2.x/deploy-docker.md @@ -77,5 +77,14 @@ docker run -d -e clusterName=cluster-a \ Create a broker container and start the broker service. ```bash -docker run -d -p 6650:6650 -p 8080:8080 --net=pulsar -e metadataStoreUrl=zk:zookeeper:2181 -e zookeeperServers=zookeeper:2181 -e clusterName=cluster-a -e managedLedgerDefaultEnsembleSize=1 -e managedLedgerDefaultWriteQuorum=1 -e managedLedgerDefaultAckQuorum=1 --name broker --hostname broker apachepulsar/pulsar-all:latest bash -c "bin/apply-config-from-env.py conf/broker.conf && exec bin/pulsar broker" +docker run -d -p 6650:6650 -p 8080:8080 --net=pulsar \ + -e metadataStoreUrl=zk:zookeeper:2181 \ + -e zookeeperServers=zookeeper:2181 \ + -e clusterName=cluster-a \ + -e managedLedgerDefaultEnsembleSize=1 \ + -e managedLedgerDefaultWriteQuorum=1 \ + -e managedLedgerDefaultAckQuorum=1 \ + --name broker --hostname broker \ + apachepulsar/pulsar-all:latest \ + bash -c "bin/apply-config-from-env.py conf/broker.conf && exec bin/pulsar broker" ```