I have the following lines in my compose file:
zookeeper01.order.mynet:
image: ibmblockchain/fabric-zookeeper:1.0.4
container_name: zookeeper01.order.mynet
environment:
- ZOO_MY_ID=1
- ZOO_SERVERS=server.1=zookeeper01.order.mynet:2888:3888 server.2=zookeeper02.order.mynet:2888:3888 server.3=zookeeper03.order.mynet:2888:3888
ports:
- '2181'
- '2888'
- '3888'
volumes:
- ./mount/zookeeper01/data/:/data
- ./mount/zookeeper01/datalog/:/datalog
When I run the docker-compose up I get:
ERROR: for zookeeper01.order.mynet Cannot start service zookeeper01.order.mynet: error while creating mount source path ‘/home/yganthe/e2e_cli_v1_ops_kafka/mount/zookeeper01/data’: mkdir /home/yganthe/e2e_cli_v1_ops_kafka: permission denied
I have already given:
chmod -R 777 mount
which means anybody should be able to create directories under mount.
I use docker 1.13.1-cs1