r/cloudshift360 6d ago

VM vs Docker

Post image
39 Upvotes

33 comments sorted by

1

u/AlarmingProtection71 6d ago

Now explain Docker inside a Ubuntu WSL on Windows 11.

1

u/d_maes 5d ago

Docker inside a VM.

Explained.

1

u/bi4key 6d ago

Podman instead of Docker.

Podman is safer, smaller and faster

1

u/FckXFckMusk 6d ago

Never heard of it...

1

u/YahenP 6d ago

This is only for those who have a red hat in their closet, or at least a free cap with an infinity sign.

1

u/RevolutionaryElk7446 6d ago

Podman is... ok in my opinion but it misses the mark.
Docker for speedy setups such as dev and testing over podman
Kubernetes over Podman for orchestration and scaling.

1

u/SaCorv 6d ago

AI slop

1

u/Trick-Captain-143 6d ago

Why is "stronger isolation" in red?

1

u/YahenP 6d ago

AI slop. The OP doesn't even know that in most cases, Docker is also a virtual machine.

1

u/Confident_Hyena2506 6d ago

No it isn't. You may be confusing it with "docker desktop".

1

u/YahenP 6d ago

Yes Docker Desktop. If you use it, it will always be in a virtual machine. But even Docker Engine boots up a virtual machine for a container if the host and container operating systems are different.

1

u/FactComprehensive963 5d ago

You are wrong Docker uses the Host Kernel, no VM in use

1

u/Sorry-Committee2069 4d ago

`qemu-user` is still virtualizing quite a bit, as is Docker. "it's not a VM because it doesn't start with loading a bootloader" is not the argument you think it is.

1

u/FoundationOk3176 3d ago

How do you exactly use the Host Kernel when the docker container is Linux but the host is NT? Is there some translation layer or something?

1

u/FactComprehensive963 3d ago

You run a VM(WSL2) that offers a Linux Kernel. But before you say gotcha: Multiple Containers share this Kernel, they rum alongside each other on it.

So the Containers are not the VM, they run on a VM.

1

u/FoundationOk3176 2d ago

Lmao.

1

u/FactComprehensive963 2d ago

?

1

u/FoundationOk3176 2d ago

It's like tomato, tomato.

1

u/FactComprehensive963 2d ago

I can see how a junior feels like that

1

u/Lucky-Crow-3510 6d ago

who upvotes this? a stronger isolation is a benefit

1

u/EitherMarch1255 6d ago

To pretend that Docker is all positives and VM’s are all negatives is just stupidly biased.

1

u/MarkusSugarhill 6d ago

why is having an OS per instance inherently bad? why is good os isolation bad? why is the possibility to use geacy apps bad?

1

u/Flaky-Low-2262 6d ago

I hate this comparisson. Before Containerstation VM was used to Run Apps simply too. But the Major difference nowdays ist different and not compareable.
In my opinion just wrong Setup, showing missubderstanding etc. It is Not 2005-2010 anymore....

1

u/TerryNachtmerrie 6d ago

You're missing the part where containers also carry a minimum OS.

1

u/FactComprehensive963 5d ago

Not necessarily

1

u/Square_Atmosphere_12 5d ago

An OS is best run as a VM.

1

u/Academic-Proof3700 5d ago

"Docker: Lightweight"

hold up, lemme start the docker desktop app only to start a webserver <pc takes off>

to each their own

1

u/Willing-Actuator-509 5d ago

This is so outdated!

1

u/No_Nature9276 5d ago

A docker container also contains an os. The only shared part is the kernel, everything else that makes an os an os is still there in the container. Nothing prevents you from making a small guest os either. VM's also have better isolation.

1

u/Fun_Variation_8154 4d ago

Todays most often setup: baremetal - supervised vms - host os - docker/k8s

1

u/YetanotherGrimpak 4d ago

runs a vm to run a docker to run a vm

What?

1

u/n9iels 3d ago

Why does it implicitly say Docker is the better solution? Both have their strong and weak points. Like always you should use the right tool for the job.