-1

docker is said to be a steroid version of chroot.

Does chroot need any special kernel support, e.g. namespace, cgroup?

Does docker rely on chroot? I ask this because "Docker is not virtualisation: It (as you know) uses namespaces, chroot, cgroups, etc."

Thanks.

2

chroot is implemented by the kernel, separately from namespaces and cgroups. Mount namespaces and pivot_root can be used to provide the same functionality as chroot; see How to perform chroot with Linux namespaces?

Docker engine uses chroot.

  • Can chroot be similar to or replaced by some namespace? – Tim Apr 6 at 18:35
  • Yes, see the update. – Stephen Kitt Apr 6 at 19:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.