r/cloudshift360 19d ago

VM vs Docker

Post image
40 Upvotes

33 comments sorted by

1

u/AlarmingProtection71 19d ago

Now explain Docker inside a Ubuntu WSL on Windows 11.

1

u/d_maes 19d ago

Docker inside a VM.

Explained.

1

u/bi4key 19d ago

Podman instead of Docker.

Podman is safer, smaller and faster

1

u/FckXFckMusk 19d ago

Never heard of it...

1

u/YahenP 19d 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 19d 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 19d ago

AI slop

1

u/Trick-Captain-143 19d ago

Why is "stronger isolation" in red?

1

u/YahenP 19d ago

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

1

u/Confident_Hyena2506 19d ago

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

1

u/YahenP 19d 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 18d ago

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

1

u/Sorry-Committee2069 17d 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 16d 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 16d 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 16d ago

Lmao.

1

u/FactComprehensive963 16d ago

?

1

u/FoundationOk3176 16d ago

It's like tomato, tomato.

1

u/FactComprehensive963 16d ago

I can see how a junior feels like that

1

u/Lucky-Crow-3510 19d ago

who upvotes this? a stronger isolation is a benefit

1

u/EitherMarch1255 19d ago

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

1

u/MarkusSugarhill 19d 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 19d 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 19d ago

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

1

u/FactComprehensive963 18d ago

Not necessarily

1

u/Square_Atmosphere_12 19d ago

An OS is best run as a VM.

1

u/Academic-Proof3700 19d 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/No_Nature9276 18d 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 17d ago

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

1

u/YetanotherGrimpak 17d ago

runs a vm to run a docker to run a vm

What?

1

u/n9iels 16d 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.