Sebp/elk how to run multiple Elastic Stacks in Docker containers on the same host

How can multiple Docker containers of the sebp/elk image be run on the same host?

I've got a Stack running with the following command, default ports:

sudo docker run --ulimit nofile=65536:65536 -p 5601:5601 -p 9200:9200 -p 5044:5044 -it --name elk_1 elastic.example.com/sebp/elk

..I tried simply changing the ports, like so:

sudo docker run --ulimit nofile=65536:65536 -p 5602:5602 -p 9201:9201 -p 5045:5045 -it --name elk_2 elastic.example.com/sebp/elk

..but no luck.

I suspect a port conflict. Do I need to change any other ports?

Perhaps best to use Docker compose? Thx Keith :^)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.