Skip to content

[Chore][Doc] Run a Pulsar cluster locally with Docker Compose #23137

Open
@salv0

Description

@salv0

Search before asking

  • I searched in the issues and found nothing similar.

What issue do you find in Pulsar docs?

In the docs https://pulsar.apache.org/docs/3.3.x/getting-started-docker-compose/
At Step 2: Create a Pulsar cluster, it should be very clear that creating the data directory is only for Linux.
When doing the step on mac, the whole docker-compose up will fail because of permissions.

What is your suggestion?

Step 2: Create a Pulsar cluster

For Mac users:

To create a Pulsar cluster by using the compose.yml file, run the following command.

run docker compose up -d

For Linux users:

As preparation, create data directories and change the data directory ownership to uid(10000) which is the default user id used in the Pulsar Docker container.

sudo mkdir -p ./data/zookeeper ./data/bookkeeper
sudo chown -R 10000 data

then create a Pulsar cluster by using the compose.yml file by running the following command.

docker compose up -d

Any reference?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    doc-requiredYour PR changes impact docs and you will update later.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions