Bugfix of docker-compose file for privileged 39/33639/1
authoryuyang <Gabriel.yuyang@huawei.com>
Thu, 20 Apr 2017 07:05:58 +0000 (15:05 +0800)
committerYu Yang (Gabriel) <Gabriel.yuyang@huawei.com>
Sat, 22 Apr 2017 00:31:32 +0000 (00:31 +0000)
JIRA: BOTTLENECK-163

privileged option in docker-compose file should be true to avoid
"permission deny" error when accessing directories

Change-Id: I1a57146236efb5fe71405c5b7682af706a8814bf
Signed-off-by: yuyang <Gabriel.yuyang@huawei.com>
(cherry picked from commit c988d5fa114a659f19f0db1fd0db9f6abc5247dd)

docker/bottleneck-compose/docker-compose.yml

index 7745f41..98d1297 100644 (file)
@@ -1,6 +1,7 @@
 elasticsearch:
   image: elasticsearch:2.4.0
   command: elasticsearch -Des.network.host=0.0.0.0
+  privileged: true
   ports:
     - "9200:9200"
     - "9300:9300"
@@ -9,6 +10,7 @@ kibana:
   build: kibana/
   volumes:
     - ./kibana/config/:/opt/kibana/config/
+  privileged: true
   ports:
     - "5601:5601"
   links:
@@ -33,6 +35,7 @@ bottlenecks:
   volumes:
     - /var/run/docker.sock:/var/run/docker.sock
     - /tmp/:/tmp/
+  privileged: true
   environment:
     - INSTALLER_IP=192.168.200.2
     - INSTALLER_TYPE=compass