Once you've seen the (older) alternatives, you cringe at Docker, indeed. Jails is a better solution. So is (Solaris/Illumos) zones.
Nix is a great way to jump over docker entirely. You can then output a container from Nix if you need it, but you aren't limited by them at all.