Skip to content

Instantly share code, notes, and snippets.

@lsgrep
Created January 22, 2015 19:34
Show Gist options
  • Select an option

  • Save lsgrep/3fd3bb4803dc067ca0cb to your computer and use it in GitHub Desktop.

Select an option

Save lsgrep/3fd3bb4803dc067ca0cb to your computer and use it in GitHub Desktop.
Run ElasticSearch Docker Container local
;;iptables,this does not work for docker . You have to set ip explicitly
sudo iptables -A INPUT -p tcp -s localhost --dport 9200 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 9200 -j DROP
;; starting elasticsearch in a secure fashion
sudo docker run --name elastic -d -p 127.0.0.1:9200:9200 -p 127.0.0.1:9300:9300 -v /elastic:/data dockerfile/elasticsearch /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment