Docker and Jails are not directly comparable, the same way Docker and raw lxc are not directly comparable. Docker operates at a higher level of abstraction, and uses lxc as a low-level sandboxing tool. It could (and soon will) offer a choice of multiple sandboxing backends beyond lxc, for example simple chroot (for older linux kernels), openvz, libvirt, etc.
There are also people experimenting with using Jails and Solaris zones as a backend to docker.
From what I'm reading, this project cbsd sounds like a more direct competitor of docker + a future jails backend.