Created
January 22, 2015 19:34
-
-
Save lsgrep/3fd3bb4803dc067ca0cb to your computer and use it in GitHub Desktop.
Run ElasticSearch Docker Container local
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;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