1

I am curious about difference between a jail environment in linux and Docker. What separates these two technologies?

2
  • Welcome to the DevOps Exchange. Can you edit your question as right now it is extremely broad. Here are some pointers: what research have you done? What specific (instead of "all aspect") questions do you have? Are you looking into something specific between the two? Commented Feb 24, 2020 at 17:16
  • Hi Wesley, I am newbie want only difference between jail env and container
    – Vishwanath
    Commented Feb 25, 2020 at 8:13

1 Answer 1

4

While both Docker and jails have some similar functionality, they are built for different purposes.

The term "jail" comes from the FreeBSD distro. A lot of people will also refer to a chroot as a jail. At its core these jails virtually change the root directory for a process and its children. This means that these processes are contained (jailed) within this new directory and should not have access to folder outside of it. Jails are a great way to run a process that you want isolated from the rest of the system.

Docker Linux is an entire platform for running containers. At its core it does this by using Linux namespaces and Linux Control Groups (source). Docker is built around packaging these containers and allowing them to easily be shared with other systems.

Ultimately, both technologies are isolating processes. However, Docker does this with the intent of making the isolated processes portable and repeatable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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