I am new to containers and I keep reading "a container is like a lightweight VM". I do not think that is right, and I would like to understand why.
I ran this:
uname -r
docker run --rm alpine uname -r
Both print the same kernel version. In a VM I would expect a different kernel. So what is isolated and what is shared? And if the kernel is shared, what stops a process inside from seeing everything?