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,050 points
25 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,050 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,280 points
197 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,280 points
79 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
• 56,120 points
56 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.