Error: Unable to access elasticsearch in docker for windows

0 votes

I am using Docker for Windows and I have set up Linux containers

I am trying to start it using the following command:

sudo docker run -d -p 9200 elasticsearch:2.3.5

if I attempt to access it via curl on bash, or the browser it is not found.

Sep 3, 2018 in DevOps & Agile by Sophie may
• 9,870 points
86 views

1 answer to this question.

0 votes

This is simple, just follow the below step:

-p 9200 tells Docker to find any available port on Windows and map it to the 9200container port.

Run this command:

sudo docker run -d -p 9200:9200 elasticsearch:2.3.5

With -p 9200:9200 Docker will use always 9200 that will be available in your localhost: localhost:9200

answered Sep 3, 2018 by Sophie may
• 9,870 points

Related Questions In DevOps & Agile

0 votes
1 answer

Docker for windows error: can’t access service on exposed port in windows container mode

You can try the following: Access container from different ...READ MORE

answered Dec 12, 2018 in DevOps & Agile by Tyrion anex
• 8,310 points
543 views
0 votes
1 answer

How to a run deployed app in Docker for Windows?

To deploy an ASP.NET web application to ...READ MORE

answered Aug 29, 2018 in DevOps & Agile by Tyrion anex
• 8,310 points
130 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,300 points
263 views
0 votes
1 answer