S
S
Sergey2020-12-02 13:43:38
API
Sergey, 2020-12-02 13:43:38

Why can't Insomnia send API requests when running a docker container under WSL 2?

Please tell me about this issue: I use Windows 10 and run docker containers inside WSL 2. Without unnecessary manipulations, Postman can send requests to this kind of local domains my.project.localhost, but when I send requests through Insomnia, I get a response " Error: Couldn't connect to server".

If I run Docker Desktop under Windows 10, then requests are sent through Insomnia as well.

What needs to be done so that various kinds of software can access projects that are locally run as docker containers from under WSL 2?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-12-02
@dimonchik2013

you need to investigate the routing,
perhaps Insomnia is more crooked (at the time of Postman's curvature, I got acquainted with the video card and the impression remained just that)
and possibly a firewall
and much more

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question