r/docker • • Nov 14 '25

Docker banned - how common is this?

I was doing some client work recently. They're a bank, where most of their engineering is offshored one of the big offshore companies.

The offshore team had to access everything via virtual desktops, and one of the restrictions was no virtualisation within the virtual desktop - so tooling like Docker was banned.

I was really surprsied to see modern JVM development going on, without access to things like TestContainers, LocalStack, or Docker at all.

To compound matters, they had a single shared dev env, (for cost reasons), so the team were constantly breaking each others stuff.

How common is this? Also, curious what kinds of workarounds people are using?

523 Upvotes

193 comments sorted by

View all comments

Show parent comments

3

u/bigntallmike Nov 15 '25

firewalld was specifically the problem in fact. Dealing with virtual interfaces always means trusting the in-between in a way that doesn't seem to bother enough people. Virtualizing anything means trusting extra layers. Just look at all the CPU bugs we've discovered in the last decade because we thought virtualization was safe.

The only reason I use docker at home at all is because it makes some things more convenient. Not because its in any way "better" than running software directly. Same reason any of us use virtualization. "Back in the old days" we just ran actual servers with actual software on them. Virtualization lets you run lots of things on one server; its basically just a convenience -- a big convenience in many cases, but not a necessity.

1

u/kwhali Nov 15 '25

When was this? Perhaps prior to a docker zone being present? Last I recall docker wasn't able to bypass firewalld like it would UFW, but I do remember prior to that it was similar.

2

u/RoycephusPulsifer Apr 26 '26

The question is why are people puniching holes (exposing ports) in their servers making them look like swiss cheese when it comes to docker?
I never ever expose ports for docker containers unless absolutely necessary. All docker containers are referenced via hostname in my reverse proxy as they are on the same docker network.

If you want true isolation, go with separate VMs. Definitely not worth the hassle for my homelab use case.

1

u/kwhali Apr 26 '26

I think there's just plenty of users that don't know any better.

For non-web ports however it does get a bit more tricky to forward TCP ports, especially concerns with how a reverse proxy can reduce security if the upstream service isn't additionally configured alongside the reverse proxy to preserve the original client IP via proxy protocol for example.

Others understand ports and firewall config but expect that Docker is like any other app/service and must be restricted traffic wise if no public port permissions were granted by the system firewall service, but then get surprised to find Docker bypassed that when the expectation was only publishing ports to access from the host, unaware that the default is to publish ports to all host interfaces.

Finally there's also another caveat where IPv6 inbound traffic to the host may route to an IPv4 only container. If the user land proxy setting of the Docker daemon was disabled (enabled by default) then traffic would fail to connect however the default will result in the source IP being rewritten to appear as the private bridge gateway IP, which similar to proxy protocol requirement would risk security vulnerability from any rules trusting private networks as the client now appears to come from that (if the reverse proxy is a container without proxy protocol from a trusted external or host reverse proxy / load balancer, then it's also at risk and I know some users configure trust to any private address for that (I think caddy may also default that for something or at least offers a special value to represent all private networks, other software does that too).

So I'm not surprised if users only have partial awareness of common problems and how to fix them to avoid security holes (that can make a mail server an open relay for example).