News for hackers. Stuff that matters.
Re:So long, and thanks for all the fish: how to escape the L... by HumanOstrich on Monday November 17, 2025 @08:05PM (#45960266)
I was actually going down rabbitholes today trying to figure out how to do a sane Docker setup where all the containers couldn't connect to each other. Your notes would be valuable at most any level of polish. :)
Re:So long, and thanks for all the fish: how to escape the L... by esseph on Tuesday November 18, 2025 @12:06AM (#45961588)
If you create each container in its own network namespace, they won't be able to.
Re:So long, and thanks for all the fish: how to escape the L... by HumanOstrich on Tuesday November 18, 2025 @12:35AM (#45961736)
It's a little more complex than that for any non-trivial layout where some containers do need to talk to other containers, but most don't.
Re:So long, and thanks for all the fish: how to escape the L... by brirec on Tuesday November 18, 2025 @01:22AM (#45961964)
You could also create a network for each pair of containers that need to communicate with one another.
Re:So long, and thanks for all the fish: how to escape the L... by HumanOstrich on Tuesday November 18, 2025 @02:07AM (#45962220)
That would create an excessive amount of bridges in my case. Also this is another trivial suggestion that anyone can find with a quick search or asking an LLM. Not helpful.

I'm not sure why people are replying to my comment with solutioning and trivial suggestions. All I did was encourage the thread OP to publish their notes. FWIW I've already been through a lot of options for solving my issue, and I've settled on one for now.

Re:So long, and thanks for all the fish: how to escape the L... by kortilla on Tuesday November 18, 2025 @03:29AM (#45962711)
> I'm not sure why people are replying to my comment with solutioning and trivial suggestions

Because your comment didn’t say you solved it and you asked for notes without any polish as if that would help.

Re:So long, and thanks for all the fish: how to escape the L... by HumanOstrich on Tuesday November 18, 2025 @09:07AM (#45966206)
I didn't say I settled on a solution for all time. I said "for now". I'm still interested in alternatives.
Re:So long, and thanks for all the fish: how to escape the L... by marginalia_nu on Tuesday November 18, 2025 @07:49AM (#45964993)
If you want point-to-point communication between two network namespaces, you should use veths[1]. I think virtual patch cables is a good mental model for veths.

If you want multiple participants, you use bridges, which are roughly analogous to switches.

[1] https://man7.org/linux/man-pages/man4/veth.4.html

Re:So long, and thanks for all the fish: how to escape the L... by esseph on Tuesday November 18, 2025 @11:58AM (#45968890)
That's a change from what was asked which was isolation between each.

Yes, if they need to talk, share namespaces.

If you don't want a generic but true answer, don't ask a generic question and then be upset when the responses don't have enough detail about your specific situation that you hadn't described :-)

Re:So long, and thanks for all the fish: how to escape the L... by HumanOstrich on Tuesday November 18, 2025 @03:55PM (#45971922)
I didn't ask a question. :-)
Re:So long, and thanks for all the fish: how to escape the L... by esseph on Wednesday November 19, 2025 @09:06AM (#45979652)
If you need more / different isolation, you're going to need custom nftables/ebtables rules.

In another model you could drop each bridge onto a unique vlan, and firewall them.

There's tons of options out there.

Anyway, if you had more specifics to go off of, there's plenty of network engineers and kubernetes/docker admins floating around willing to help - maybe start a Ask HN post?

Re:So long, and thanks for all the fish: how to escape the L... by HumanOstrich on Wednesday November 19, 2025 @09:59AM (#45980376)
You're still offering suggestions I said I didn't ask for. I'm sure you're trying to help, but at this point you're coming across as passive-aggressive.
Re:So long, and thanks for all the fish: how to escape the L... by esseph on Wednesday November 19, 2025 @10:07AM (#45980470)
You asked for the notes of somebody that's done isolation in different ways in docker.

Your responses have confused me so much I showed them to my partner, who is also confused.

Re:So long, and thanks for all the fish: how to escape the L... by HumanOstrich on Wednesday November 19, 2025 @10:17AM (#45980610)
I asked the person I was replying to for their notes because they were asking if anyone was interested in them.
Re:So long, and thanks for all the fish: how to escape the L... by aryonoco on Tuesday November 18, 2025 @09:19AM (#45966377)
I put each docker container in a LXC container which effectively uses namespaces, cgroups etc to isolate them.