You should avoid Docker, is the obvious answer, and grow to love FreeBSD jails.