A question
Isn't docker container similar to chroot-ing?

  • 3
    Kinda. But it also gives you virtual networking, copy-on-write, resource management. Think chroot + cgroups + overlayfs + network is running on a separate network interface.
  • 1
    @gronostaj Thanks for elaboratingšŸ˜€
  • 3
    I wouldn't say so. You can "chroot" into containers though. So you can do that, but containers aren't that

    If it's similar to anything, it would be similar to vms.

    A container is like a vm, but it's containerized aka, in the sense that it won't affect the "host" machine (just like actual vms) but it can also hook up to the host's resources in a very easy way (networking, disk, other stuff).

    Also these containers spawned from images, and these images are created in a very clever and intuitive way using diff algorithms.

    Docker is also not virtualization, this explains it better https://stackoverflow.com/a/...
  • 1
    @erandria thanks for the explanation
  • 4
    If only there was a category specifically for questions, so you didn't have to !rant...
Your Job Suck?
Get a Better Job
Add Comment