Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use docker to start RocketMq #4570

Closed
Cocowwy opened this issue Jul 7, 2022 · 3 comments · Fixed by #9096
Closed

Use docker to start RocketMq #4570

Cocowwy opened this issue Jul 7, 2022 · 3 comments · Fixed by #9096

Comments

@Cocowwy
Copy link

Cocowwy commented Jul 7, 2022

When I use
$ docker run -it --net=host --mount source=/tmp/store,target=/home/rocketmq/store apache/rocketmq ./mqbroker -n localhost:9876.
to start Broker

Will report an error:
docker: Error response from daemon: create /tmp/store: "/tmp/store" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path

@caigy
Copy link
Contributor

caigy commented Jul 8, 2022

The following command works. Maybe you could refer to documents of docker for more information.
docker run -it --net=host --mount type=bind,source=/tmp/,target=/home/rocketmq/store apache/rocketmq ./mqbroker

@ltamber
Copy link
Contributor

ltamber commented Jul 8, 2022

the source argument should be a volume name default, unless you specified the type argument

@OneCodeMonkey
Copy link
Contributor

Directly use -v param will be fine:
docker run -it --net=host -v /tmp/store:/home/rocketmq/store --name=rocketmqBroker apache/rocketmq ./mqbroker -n localhost:9876

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants