Passing Elasticsearch and Kibana config file to docker containers -
i have found docker image devdb/kibana runs elasticsearch 1.5.2
, kibana 4.0.2
. pass docker container configuration files both elasticsearch
(i.e elasticsearch.yml) , kibana
(i.e config.js)
can image itself? or have build separate docker container?
can image itself?
yes, use docker volumes pass in own config files
let have following files on docker host:
- /home/liv2hak/elasticsearch.yml
- /home/liv2hak/kibana.yml
you can start container with:
docker run -d --name kibana -p 5601:5601 -p 9200:9200 \ -v /home/liv2hak/elasticsearch.yml:/opt/elasticsearch/config/elasticsearch.yml \ -v /home/liv2hak/kibana.yml:/opt/kibana/config/kibana.yml \ devdb/kibana
i able figure out looking @ image dockerfile parents are: devdb/kibana→devdb/elasticsearch→abh1nav/java7→abh1nav/baseimage→phusion/baseimage , taking peek devdb/kibana
container: docker run --rm -it devdb/kibana find /opt -type f -name *.yml
.
or have build separate docker container?
i assume mean build separate docker image?. work, instance following dockerfile that:
from devdb/kibana copy elasticsearch.yml /opt/elasticsearch/config/elasticsearch.yml copy kibana.yml /opt/kibana/config/kibana.yml
now build image: docker build -t liv2hak/kibana .
and run it: docker run -d --name kibana -p 5601:5601 -p 9200:9200 liv2hak/kibana
Comments
Post a Comment