Error: Windows container is unavailable via localhost

0 votes

I am trying to set up a Docker for Windows container to build and host a simple  website using lite-server and Sphinx.

Run the container,

$ docker run -it -p 8080:8080 -v "$(pwd):C:\src" website

start lite-server.

$ yarn serve

The website is available from the container's IP address so I know lite-server is serving the content, but I cannot access the content form http://localhost:8080.

How can I expose the website via localhost:8080?

Sep 3, 2018 in DevOps & Agile by Sophie may
• 9,530 points
23 views

1 answer to this question.

0 votes

This is because,

containers and their ports are only accessible via the NATed IP address.
answered Sep 3, 2018 by Sophie may
• 9,530 points

Related Questions In DevOps & Agile

0 votes
1 answer
0 votes
1 answer
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,540 points
160 views
0 votes
1 answer
0 votes
1 answer