Hello Docker community,
I am extremely new to using Docker. I am running the ELK stack (elasticsearch, logstash, kibana) with the official images. Currently I have it up and running using the commands
docker run -d -p 9200:9200 -p 9300:9300 -it -h elasticsearch --name elasticsearch elasticsearch
docker run -d -p 5601:5601 -h kibana --name kibana --link elasticsearch:elasticsearch kibana
docker run -d -h logstash --name logstash --link elasticsearch:elasticsearch -it --rm -v “$PWD”:/config-dir logstash -f /config-dir/logstash.conf
For my own personal use it isn’t very hard to run these commands since I know a little about the syntax and what not. But I will be distributing Docker to other engineers and was hoping that I could somehow bundle these commands together (and whatever commands I end up using) in a file and run that. Sort of like a bash file but for Docker. I know that there are things called Dockerfiles but I am unsure if that is what I need. That seems more like creating a whole new image. Any tips?