L
L
Leopandro2021-09-25 00:44:33
Docker
Leopandro, 2021-09-25 00:44:33

Why can't I connect to docker with ip?

How to register external ip for docker in windows?
gives this error614e46bd84348380559451.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-09-25
@karabanov

Because this IP only exists in the imagination of the virtual machine in which Docker runs under Windows.
Per-container IP addressing is not possible .
Make Port forwarding (flag -por directive ports:in compose), then you can connect to the container from the host machine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question