Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

localhost not working docker windows 10

I am using VS2017 docker support. VS created DockerFile for me and when I build docker-compose file, it creates the container and runs the app on 172.x.x.x IP address. But I want to run my application on localhost.

I did many things but nothing worked. Followed the docker docs as a starter and building microsoft sample app . The second link is working perfectly but I get HTTP Error 404 when tried the first link approach.

Any help is appreciated.

like image 658
Usama Saleem Avatar asked Oct 30 '17 07:10

Usama Saleem


1 Answers

For those who encountering this issue in 2022, changing localhost to 127.0.0.1 solved an issue for me.

like image 91
Gleb V Avatar answered Sep 28 '22 19:09

Gleb V