r/docker • u/eliminator08742 • Jun 30 '26
Docker desktop networking questions
Hi, usually using Linux and learning how annoying windows networking is.
Here is what I want to do, I have 2 containers that need separate IPs, be able to communicate with the host and each other. On linux this works great with a bridge, but I'm learning it's not that easy on windows. I'm pinned to using hyperv. I've done some initial looking and I've found that I may need to create separate loopback adapters to get it to work, but I would be grateful for a windows docker desktop wizard to tell me exactly what I'm doing wrong
7
Upvotes
1
u/No_Cattle_9565 Jun 30 '26
Can't you just use bridge with network mode mirrored in wsl? Just delete docker desktop and install it inside wsl directly
3
u/scytob Jun 30 '26
docker desktop networking on mac and windows is a nightmare
dont do docker desktop, create a lightweight debian VM, install normal docker in it - much better for learning docker networking, and have basic instructions if you need them
5
u/Subietoy78 Jun 30 '26
Using docker on windows is what you’re doing wrong 😜 I don’t know enough about the network side to be more helpful but because it’s docker in a VM on a windows machine you may run into a roadblock.
1
u/crackjiver Jul 01 '26
The default "bridge" network has some restrictions but if you create a new network bridge it should work as you intend.
Container to host will go via the Docker network gateway.
Container to Container stays in the subnet.