this post was submitted on 17 Nov 2024
257 points (98.9% liked)

Programmer Humor

32490 readers
554 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 48 points 23 hours ago (5 children)

People don’t actually do this, right? Docker inside docker inside a VM inside another VM? On windows? Right????

[–] [email protected] 2 points 2 hours ago

I've ran Docker in LXC in a KVM before. I used LXC to have multiple containers on a VPS. Then I had to run something that works best with Docker, so I stuck Docker in an LXC.

[–] [email protected] 13 points 14 hours ago (3 children)

I'm pretty sure docker recommends that it runs under WSL when on windows.

[–] [email protected] 2 points 2 hours ago* (last edited 2 hours ago) (1 children)

Windows itself is technically running in a VM if you have Hyper-V enabled (not quite that simple, but that's a reasonable approximation). Hyper-V is a type 1 hypervisor which means it runs directly on the underlying physical hardware, and both Windows as well as any VMs you create are running on top of Hyper-V.

[–] [email protected] 1 points 9 minutes ago

Oh that's an interesting tidbit, didn't know that

[–] [email protected] 5 points 11 hours ago

Yeah, docker in a VM makes sense. Docker in docker in a vm in a vm though?

[–] [email protected] 5 points 12 hours ago

Yep, can confirm

[–] [email protected] 14 points 22 hours ago

Isnt that exactly what minikube is? Kubernetes in docker.

I've used docker-in-docker images, but its usually not fun.

[–] [email protected] 17 points 23 hours ago (2 children)

I've seen docker inside a VM before but that was just a dev box for testing

[–] [email protected] 1 points 2 hours ago (1 children)

That's the most reasonable part of the image

[–] [email protected] 1 points 30 minutes ago

Are you not losing loads of performance by stacking vms like that?

[–] [email protected] 16 points 22 hours ago

That's super standard for actual infrastructure