Reputation: 12870
I have a production instance of elasticsearch 5.6.9
deployed on elastic.cloud.
WIth an http elastic all is OK but I would run a localhost kibana connected to that https instance!
I have tried:
docker run --name kibana-prod-user
-e ELASTICSEARCH_URL=https://####.eu-west-1.aws.found.io:9243
-e ELASTICSEARCH_PASSWORD=####
-v /host/workspace/cert:/usr/share/elasticsearch/config/certificates
-p 3501:5601 --b kibana
but i get:
In my mount dir I have put the cert.cer
of elastic cloud.
Any ideas?
Thank you very much
Upvotes: 8
Views: 263
Reputation: 12870
I have find the solution, after understand that the error wasn't a certificate problem.
The right script for kibana 5.6.10 is:
docker run --name kibana-prod-provider -v "$(pwd)":/etc/kibana/ -p 3502:5601 --rm kibana
because the ELASTICSEARCH_PASSWORD
envvar is not managed by the docker file, only le URL is.
Then in the $(pwd)
directory I have put this kibana.yml
file:
server.host: '0'
elasticsearch.url: 'https://###.eu-west-1.aws.found.io:9243'
elasticsearch.username: elastic
elasticsearch.password: ###
Upvotes: 3