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
2,522 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,690 points
7,223 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,690 points
2,249 views
+2 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
7,727 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