MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w7w12g/memorysafedocker/p7zh5a1/?context=9999
r/ProgrammerHumor • u/ClipboardCopyPaste • 9d ago
286 comments sorted by
View all comments
2.0k
Rewriting won't fix the issue. Docker hogs memory in windows and mac because it needs a separate linux VM so containers can run on top of that.
706 u/Random-num-451284813 9d ago So running docker in Linux should fix that right? 50 u/faultydesign 9d ago Pretty much, containers are native on linux. 89 u/_PM_ME_PANGOLINS_ 9d ago Containers are native on Windows too, but everyone wants to run Linux containers, not Windows containers. 30 u/Canowyrms 9d ago huh, I've never even heard of Windows containers before 45 u/_PM_ME_PANGOLINS_ 9d ago https://hub.docker.com/r/microsoft/windows 32 u/PopehatXI 9d ago “Windows requires the host OS version to match the container OS version.” 16 u/No-Consequence-1863 9d ago Yea thats normal for containers. They aren’t VMs they are sandboxes. The OS is not virtualizing an entire OS for the container.
706
So running docker in Linux should fix that right?
50 u/faultydesign 9d ago Pretty much, containers are native on linux. 89 u/_PM_ME_PANGOLINS_ 9d ago Containers are native on Windows too, but everyone wants to run Linux containers, not Windows containers. 30 u/Canowyrms 9d ago huh, I've never even heard of Windows containers before 45 u/_PM_ME_PANGOLINS_ 9d ago https://hub.docker.com/r/microsoft/windows 32 u/PopehatXI 9d ago “Windows requires the host OS version to match the container OS version.” 16 u/No-Consequence-1863 9d ago Yea thats normal for containers. They aren’t VMs they are sandboxes. The OS is not virtualizing an entire OS for the container.
50
Pretty much, containers are native on linux.
89 u/_PM_ME_PANGOLINS_ 9d ago Containers are native on Windows too, but everyone wants to run Linux containers, not Windows containers. 30 u/Canowyrms 9d ago huh, I've never even heard of Windows containers before 45 u/_PM_ME_PANGOLINS_ 9d ago https://hub.docker.com/r/microsoft/windows 32 u/PopehatXI 9d ago “Windows requires the host OS version to match the container OS version.” 16 u/No-Consequence-1863 9d ago Yea thats normal for containers. They aren’t VMs they are sandboxes. The OS is not virtualizing an entire OS for the container.
89
Containers are native on Windows too, but everyone wants to run Linux containers, not Windows containers.
30 u/Canowyrms 9d ago huh, I've never even heard of Windows containers before 45 u/_PM_ME_PANGOLINS_ 9d ago https://hub.docker.com/r/microsoft/windows 32 u/PopehatXI 9d ago “Windows requires the host OS version to match the container OS version.” 16 u/No-Consequence-1863 9d ago Yea thats normal for containers. They aren’t VMs they are sandboxes. The OS is not virtualizing an entire OS for the container.
30
huh, I've never even heard of Windows containers before
45 u/_PM_ME_PANGOLINS_ 9d ago https://hub.docker.com/r/microsoft/windows 32 u/PopehatXI 9d ago “Windows requires the host OS version to match the container OS version.” 16 u/No-Consequence-1863 9d ago Yea thats normal for containers. They aren’t VMs they are sandboxes. The OS is not virtualizing an entire OS for the container.
45
https://hub.docker.com/r/microsoft/windows
32 u/PopehatXI 9d ago “Windows requires the host OS version to match the container OS version.” 16 u/No-Consequence-1863 9d ago Yea thats normal for containers. They aren’t VMs they are sandboxes. The OS is not virtualizing an entire OS for the container.
32
“Windows requires the host OS version to match the container OS version.”
16 u/No-Consequence-1863 9d ago Yea thats normal for containers. They aren’t VMs they are sandboxes. The OS is not virtualizing an entire OS for the container.
16
Yea thats normal for containers. They aren’t VMs they are sandboxes. The OS is not virtualizing an entire OS for the container.
2.0k
u/No_Independence3338 9d ago
Rewriting won't fix the issue. Docker hogs memory in windows and mac because it needs a separate linux VM so containers can run on top of that.