Docker is a concept resembling FreeBSD's jails that were introduced in year 2000, having much better isolation, much better security than Docker has had for a long time (perhaps even now jails are still superior to Docker).
If you want to compare Jails to something on Linux then I think LXD is probably much closer to what Jails are.