Docker running ubuntu with elasticsearch
NickName:Rods Freitas Ask DateTime:2017-06-17T06:12:50

Docker running ubuntu with elasticsearch

I have a ubuntu docker. I install elasticsearch service it.

When i use the command "curl -X GET 'localhost:9200' ", it return me the version, the name, all right.

It means the elasticsearch is configured correct, but when i access on my browser out of docker , doesn't work.

I have already configured the network on elasticsearch.yml file in path: /etc/elasticsearch/elasticsearch.yml

I don't know the reason. When i start the docker i use the command:

docker run -it -p 9200:9200 ubuntu/elastic

Extra information: the elasticsearch is in ubuntu that it's a docker too. i start the ubuntu, and after that inside the ubuntu's container i start the elasticsearch service.

Copyright Notice:Content Author:「Rods Freitas」,Reproduced 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/44598675/docker-running-ubuntu-with-elasticsearch

Answers
Mickael 2017-06-16T23:08:31

You should use the official ELS docker image instead and use the command in the documentation.\n\nFrom ELS documentation :\n\n\n The Docker image can be retrieved with the following command:\n\ndocker pull docker.elastic.co/elasticsearch/elasticsearch:5.4.1\n\n \n [...]\n \n Running Elasticsearch from the command lineedit\n \n Development modeedit\n \n Elasticsearch can be quickly started for development or testing use\n with the following command:\n\ndocker run -p 9200:9200 -e \"http.host=0.0.0.0\" -e \"transport.host=127.0.0.1\"\n\n \n docker.elastic.co/elasticsearch/elasticsearch:5.4.1\n",


More about “Docker running ubuntu with elasticsearch” related questions

Docker running ubuntu with elasticsearch

I have a ubuntu docker. I install elasticsearch service it. When i use the command "curl -X GET 'localhost:9200' ", it return me the version, the name, all right. It means the elasticsearch is

Show Detail

Docker ubuntu - elasticsearch

I create a container with ubuntu's image. That's all right, and i can use very well. So, i install a elasticsearch service in this ubuntu's docker. I have a ubuntu docker. I install elasticsearch

Show Detail

What are the advantages of running elasticsearch on CoreOS (with Docker) instead of Ubuntu

I'm very new to CoreOS / Docker, so could you please explain what advantages (or disadvantages) there are with running elasticsearch nodes on CoreOS machines instead of plain old Ubuntu machines. ...

Show Detail

Elasticsearch Docker image not running

I'm trying to build a docker container running elasticsearch v2 using this dockerfile (I'm using RHEL 6 and docker 1.7.1): FROM partlab/ubuntu-java MAINTAINER Régis Gaidot <[email protected]&gt...

Show Detail

Elasticsearch file descriptors error with Docker on Ubuntu 18.04

I'm running on an error when trying to up an Elasticsearch container : elasticsearch_1 | [1]: max file descriptors [65336] for elasticsearch process is too low, increase to at least [65535] The do...

Show Detail

How to connect to a docker box running elasticsearch inside a vagrant guest os?

I'm trying to start a vagrant box that in turn pulls in a docker elasticsearch image... VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # virtualbox provide...

Show Detail

Running elasticsearch in docker

I'm trying to run elasticsearch in a Docker container on my laptop (Mac OS) and running my tests connecting on the TCP port 9300. First I tried to run it without docker: wget https://artifacts.el...

Show Detail

Elasticsearch Docker Container Stops 10secs After Start in Ubuntu

I ran a docker-compose file to setup elasticsearch and Kibana on Ubuntu 18.04LTS. Kibana container is up and running just fine but elasticsearch goes down after about 10secs. I have restarted the

Show Detail

network.host setting for Docker running ElasticSearch

I am running a docker in my ubuntu host with the following: docker run -d --rm -p 9200:9200 -p 9300:9300 --name elasticsearch6.6.1 docker.elastic.co/elasticsearch/elasticsearch:6.6.1 Later on whe...

Show Detail

Issues in elasticsearch server running in docker

I am new to Docker. I have developed a webapp that needs elasticsearch server up and running, and the server itself listens for any user request. IN our workflow, we would like to see elasticsearch...

Show Detail