Score:0

Do Windows containers share resources like Linux containers?

in flag

Containers on Linux share the OS kernel and thus processor cores, memory, disk space, etc.

On Windows, as far as I know, there are two types of containers: Linux containers via WSL2 and Windows containers. WSL2 runs in a VM, so probably does not share with the rest of the Windows world, but within the other Linux containers.

With Windows Container, I have no idea at all how this technique works. Is the Windows kernel also shared here? Are processor cores, memory, disk space and so on shared among the containers, so that the resources can be used as best as possible like on Linux? Or does each container get a fixed amount of RAM, for example, as in a VM?

Stuka avatar
gb flag
Nice article, will keep it in my bookmarks.
Score:1
cn flag

Windows containers can share resources, yes.

Windows containers offer two distinct modes of runtime isolation: process and Hyper-V isolation. Containers running under both isolation modes are created, managed, and function identically. They also produce and consume the same container images. The difference between the isolation modes is to what degree of isolation is created between the container, the host operating system, and all of the other containers running on that host.

Process Isolation is the "traditional" isolation mode for containers and is what is described in the Windows containers overview. With process isolation, multiple container instances run concurrently on a given host with isolation provided through namespace, resource control, and other process isolation technologies. When running in this mode, containers share the same kernel with the host as well as each other. This is approximately the same as how Linux containers run.

https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/hyperv-container

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.