Thank you for posting this, never realized such a thing existed. Makes it easy to maintain different identities. It's made by Mozilla too. Wonder why it isn't a core feature of Firefox.
privacy.userContext.enabled;true
privacy.userContext.ui.enabled;true
privacy.userContext.longPressBehavior;2
The last config is so that you can open a new container tab by long-pressing the new tab button.