B
B
bozuriciyu2020-12-30 15:05:05
elasticsearch
bozuriciyu, 2020-12-30 15:05:05

What for 2 times ports are assigned?

In the elastic dock, there is such a command

docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.5.1

Why 2 times?-p 9200:9200 -p 9300:9300

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-12-30
@bozuriciyu

the container port is mapped to the port of the host system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question