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

Programmer Humor

32503 readers
492 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 36 comments
sorted by: hot top controversial new old
[–] [email protected] 13 points 1 day ago

Who's Jane? This is Fedora the Explainer.

[–] [email protected] 10 points 23 hours ago* (last edited 23 hours ago)

It's windows host because it has the unique property of leaking to higher levels of abstraction and leaking to lower levels of abstraction, which is a technological feat that can only come from Microsoft.

[–] [email protected] 4 points 21 hours ago

inb4 it's actually some microcode change introduced to intel management engine

[–] [email protected] 13 points 1 day ago (1 children)

TIL go is an interpreted language and runs straight from source code!

[–] [email protected] 7 points 1 day ago

obviously the shell script compiles the executable every time the image is run :)

[–] [email protected] 72 points 1 day ago (4 children)

Docker, no docking!
Docker, no docking!
Docker, no docking!

[–] [email protected] 60 points 1 day ago

deploying docker-compose to production

[–] [email protected] 28 points 1 day ago (1 children)

Wait, by docking do you mean... docking?

[–] [email protected] 26 points 1 day ago (1 children)
[–] [email protected] 6 points 1 day ago
[–] [email protected] 4 points 1 day ago

Backup, backup....

[–] [email protected] 53 points 1 day ago (5 children)

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

[–] [email protected] 3 points 1 day 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 1 day ago (3 children)

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

[–] [email protected] 4 points 1 day ago* (last edited 1 day 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] 2 points 22 hours ago

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

[–] [email protected] 5 points 1 day ago

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

[–] [email protected] 5 points 1 day ago

Yep, can confirm

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

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

[–] [email protected] 3 points 1 day ago (1 children)

That's the most reasonable part of the image

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

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

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

Using Docker in a VM on a Hypervisor is industry standard, using docker inside of docker may be okay for CI purposes but I wouldn't do anything more than that in production if it's not necessary.

The stack from the image above (Windows>WSL> Docker>Minikube>Docker>App) is something you'd use on a dev machine (not a "real", production-like test environment), in which case you don't really care about the performance loss

[–] [email protected] 16 points 1 day ago

That's super standard for actual infrastructure

[–] CameronDev 14 points 1 day ago

Isnt that exactly what minikube is? Kubernetes in docker.

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

[–] [email protected] 33 points 1 day ago

Could also be a hyper-v layer around Windows "host"

[–] akkajdh999 32 points 1 day ago (1 children)

You know how much layers there are under hello.go?

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

There are even layers within the hardware layer. :)

[–] [email protected] 37 points 1 day ago (1 children)

and of course at the lowest level the particle interactions are all calculated by cueball using rocks in a desert

[–] [email protected] 22 points 1 day ago (1 children)
[–] [email protected] 6 points 1 day ago

There are even several layers of transistors. And several energy layers of the electrons

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

Dora s'appelle Jane en anglais ?!

[–] [email protected] 18 points 1 day ago

Non, Dora s'appelle Dora en anglais. The meme is just weird.

[–] [email protected] 4 points 1 day ago* (last edited 1 day ago)

Non. Et effectivement Jane ça ferait moins latina. Tous les autres stéréotypes sont là pour apprendre l'espagnol