I keep hearing "a container is a lightweight VM" and something about that sentence feels wrong. A test that confused me:
uname -r # on my host
docker run --rm alpine uname -r # inside a container
Both print the same kernel version. In a VM they would differ. So what is a container really, and where exactly is the isolation?