Alex Susanu

Dockering Around

-p map port from container 9200 to localhost 9200 port 9300 ES transport port 9d91a60d3ba35a89ecf8ec1914d61f342c7bb6c6d15f2943ae60c5ec2e2227a is the image id of the image I have locally bitnami/elasticsearch:8.11.3

docker run -d -p 9200:9200 -p 9300:9300 --name elastic_test 9d91a60d3ba35a89ecf8ec1914d61f342c7bb6c6d15f2943ae60c5ec2e2227a

9201 - localhost 9200 - elastic container

docker run -d --name es2 -p 9201:9200 -p 9301:9300 project/test_es:v0

create a new image from a container’s changes