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
• 10,620 points
1,707 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
• 10,620 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,700 points
5,708 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 30, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
1,231 views
+2 votes
1 answer
+2 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
• 58,020 points
2,738 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP