this post was submitted on 17 Nov 2024
292 points (98.7% liked)

Programmer Humor

32542 readers
522 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
all 37 comments
sorted by: hot top controversial new old
[–] 30p87@feddit.org 2 points 1 day ago

My abstractions are:

  • Physical hardware
  • Linux
  • systemd executing the service
[–] davel@lemmy.ml 73 points 4 days ago (4 children)

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

[–] yogthos@lemmy.ml 61 points 4 days ago

deploying docker-compose to production

[–] xmunk@sh.itjust.works 28 points 4 days ago (1 children)

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

[–] davel@lemmy.ml 28 points 4 days ago (1 children)
[–] vext01@lemmy.sdf.org 5 points 4 days ago

Backup, backup....

[–] _pi@lemmy.ml 15 points 3 days ago* (last edited 3 days 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.

[–] ChaoticNeutralCzech@feddit.org 15 points 3 days ago

Who's Jane? This is Fedora the Explainer.

[–] traches@sh.itjust.works 54 points 4 days ago (5 children)

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

[–] MrScottyTay@sh.itjust.works 14 points 4 days ago (3 children)

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

[–] dan@upvote.au 5 points 3 days ago* (last edited 3 days 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.

[–] MrScottyTay@sh.itjust.works 2 points 3 days ago

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

[–] traches@sh.itjust.works 5 points 4 days ago

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

[–] Matshiro@szmer.info 5 points 4 days ago

Yep, can confirm

[–] flashgnash@lemm.ee 17 points 4 days ago (2 children)

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

[–] QuazarOmega@lemy.lol 16 points 4 days ago

That's super standard for actual infrastructure

[–] twei@discuss.tchncs.de 3 points 3 days ago (1 children)

That's the most reasonable part of the image

[–] flashgnash@lemm.ee 2 points 3 days ago (1 children)

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

[–] twei@discuss.tchncs.de 1 points 3 days 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

[–] CameronDev@programming.dev 14 points 4 days ago

Isnt that exactly what minikube is? Kubernetes in docker.

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

[–] dan@upvote.au 3 points 3 days 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.

[–] PotatoesFall@discuss.tchncs.de 14 points 4 days ago (1 children)

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

[–] yogthos@lemmy.ml 9 points 3 days ago

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

[–] groet@feddit.org 33 points 4 days ago

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

[–] akkajdh999@programming.dev 32 points 4 days ago (1 children)

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

[–] yogthos@lemmy.ml 27 points 4 days ago (2 children)

There are even layers within the hardware layer. :)

[–] Swedneck@discuss.tchncs.de 37 points 4 days ago (1 children)

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

[–] elidoz@lemmy.ml 22 points 4 days ago (1 children)
[–] bloubz@lemmygrad.ml 6 points 4 days ago

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

[–] merthyr1831@lemmy.ml 6 points 3 days ago

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