ericallam commented on issue #15647:
URL: https://github.com/apache/pulsar/issues/15647#issuecomment-1344270020
I'm on an ARM Mac and I'm seeing the `Cannot write to data directory
data/standalone/zookeeper/version-2` error only when running pulsar in Docker
Compose, but I'm able to run the following docker command and have it work:
```sh
docker run -it -p 6650:6650 -p 8080:8080 --mount
source=pulsardata,target=/pulsar/data --mount
source=pulsarconf,target=/pulsar/conf --name pulsar apachepulsar/pulsar:latest
bin/pulsar standalone
```
The following docker-compose.yml leads to the error:
```yaml
version: "3.7"
services:
pulsar:
image: apachepulsar/pulsar:latest
command: bin/pulsar standalone
ports:
- 6650:6650
- 8080:8080
volumes:
- pulsardata:/pulsar/data
- pulsarconf:/pulsar/conf
volumes:
pulsardata:
pulsarconf:
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]