Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So the software in a container runs on the host-OS and there is no extra OS installed in the container?


There's a sleight of hand going on here.

The boundary between "kernel" and "libraries like libc" is very stable and doesn't change often. That means that often, the kernel distributed by Arch can work reasonably well in an Ubuntu system, and vice versa.

With that in mind: The "ubuntu" image ships the "ubuntu-glibc" and "ubuntu-bash" and "ubuntu-coreutils" and so on, but they continue to work on your Arch host because the system calls don't ever change.

You can't link (say) ubuntu-glibc into arch-bash though, which is why containers are built off of a "base ubuntu image" in the first place.


ah, so only the host-kernel is used and I have to add (distribution specific) libraries to the container?


Pretty much.

Containers come with their libraries though; you don't have to "add" anything. You'd just apt-get it within the container and it would pull down its dependencies.


This is correct. It uses features of the kernel and modern filesystems for efficient isolation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: