Robotics StackExchange | Archived questions

Docker Windows container communication

Hi all,

let's structure this in [Background], [Facts] and [Problem]. Feel free to only read problem.

Background:

Facts:

Problem: now for the really fun thing


Cheers, aur20

Asked by aur20 on 2023-01-25 11:58:17 UTC

Comments

In general on this site, we only "close" questions that are duplicates or if there is something else wrong with them. My opinion is that you should re-open it.

Asked by Mike Scheutzow on 2023-01-30 08:30:13 UTC

Answers

There's me again.

Short answer: It is not possible.

Long answer: Docker in WSL2 can use --network=host, it will use kinda bridged network with the WSL but I cannot enter from Windows. This is because Ubuntu will be reachable, lets say for example at 172.19.48.1 which you can query from ipconfig. Then, Docker containers get assigned an IP like 172.19.58.1 which I found by installing ifconfig inside the container (Yes, I've read that it's outdated but anyways...). At my equipment it is not possible to have a route reaching that container.

Asked by aur20 on 2023-01-29 10:47:23 UTC

Comments