English
A quick note about container environments

A quick note about container environments

Record the differences between containers and VMs and other lessons learned

How Containers Work

Share the host OS's kernel but isolate it like a process

What if the kernel is incompatible?

Of course it won't run, but the reason why it can run on MAC, WINDOW, etc. is because it adds a whole VM layer

Why docker desktop installation on windows tells you to install wsl2. It seems to be because you need to install MS's Linux VM to make that layer-based container work.

Even if the issue is with the kernel version, it can still crash (trying to use features that don't exist due to version differences, etc)

Conclusion.

Kernel types must match, feature support must not be an issue, and CPU architectures must match for containers to run.

VM

Standalone with hypervisor, separate kernel. There is bare-metal / hosted, what we use is mostly hosted, there is performance loss because hypervisor is on top of OS

Volume Binding

Used to preserve data persistence, handled by mounting a specific directory on the host machine. On Linux native, it writes directly to the VFS, on other OSes it burns the internal virtual network and can be relatively slow.

Why Windows ignores chmod.

Windows uses ACLs (Access Control Lists) to manage permissions and doesn't understand how chmod works.

댓글 작성

게시글에 대한 의견을 남겨 주세요.

댓글 0