title: Chroot vs Docker
body: <p>I'm trying to learn the basics about containers (Docker in this case). As far as I learn from the Docker doc and several readings, Docker basically provides isolation by running the container using <a href="https://github.com/opencontainers/runc" rel="noreferrer">runc</a> (previously using <a href="https://linuxcontainers.org/" rel="noreferrer">LXC</a>). Either ways it uses the same kernel as the host machine. Thus, the container image needs to be compatible with the host kernel. I find this very similar to what a <a href="https://en.wikipedia.org/wiki/Chroot" rel="noreferrer">chroot</a> does. Could somebody explain to me any differences and/or advantages on using Docker rather than chroot? (besides the extras provided by Docker as packaging, docker-hub, and all the nice features provided by Docker)</p>