The FreeBSD answer to containers is jails, but I'm not sure how the capabilities of jails maps to the functionality provided by cgroups.
FreeBSD Jails are here since year 2000 - 24 years ago.
The Linux answer to FreeBSD Jails is Docker - from 2014 - and later Podman.
Hope that helps.
Regards, vermaden