Home:ALL Converter>docker run rocketeq error

docker run rocketeq error

Ask Time:2018-06-08T21:59:34         Author:skywalkboy

Json Formatter

My OS is win10 and use docker toolbox running contain.When I run a rocketmq image ,it always restarting the log show the error is

java.io.FileNotFoundException: /opt/rocketmq/conf/broker.properties (Is a directory)

My dockerfile part is

CMD cd /opt/rocketmq/bin && export JAVA_OPT=" 
-Duser.home=/opt" && sh mqbroker -c /opt/rocketmq/conf/broker.properties
VOLUME /opt/logs /opt/store

And docker compose.yml part is

        - "/e/code/rocketmq-externals/rocketmq-docker/4.1.0-incubating/conf/broker-a/logs:/opt/logs"
        - "/e/code/rocketmq-externals/rocketmq-docker/4.1.0-incubating/conf/broker-a/store:/opt/store"
        - "/e/code/rocketmq-externals/rocketmq-docker/4.1.0-incubating/conf/broker-a/conf/broker.properties:/opt/rocketmq/conf/broker.properties"

I think somewrong is the volum map relation


Author:skywalkboy,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/50762330/docker-run-rocketeq-error