Skip to content

Instantly share code, notes, and snippets.

@todiadiyatmo
Last active October 5, 2015 09:51
Show Gist options
  • Select an option

  • Save todiadiyatmo/5f07be489de14669e1d8 to your computer and use it in GitHub Desktop.

Select an option

Save todiadiyatmo/5f07be489de14669e1d8 to your computer and use it in GitHub Desktop.
Docker

Pull

docker pull [OPTIONS] NAME[:TAG]

Run

 docker run --name your_name -d -p 9200:9200 -p 9300:9300 -v "$PWD/config":/usr/share/elasticsearch/config -v "$PWD/esdata":/usr/share/elasticsearch/data elasticsearch

Other

docker start your_name

docker stop your_name

docker inspect your_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment