Have you tried using Firejail? I’d recommend it. This is the way I set it up if you’re interested. This will set it up in the same way that Firefox Multi-Account Containers would but you’re sandboxing everything with Firejail.
Before doing this, I actually recommend installing AppArmor so that you can sandbox Firejail as well.
sudo apt update -y
sudo apt install apparmor apparmor-profiles apparmor-profiles-extra -y
sudo apt install firejail firejail-profiles firetools -y
All of these should be available in Debian 9, Ubuntu 18.04.3 LTS and up. You’ll have all of the AppArmor profiles you’ll require, as well as all of the Firejail profiles you’ll require if you choose to use it for other applications.
sudo nano /usr/local/bin/firefox
#!/bin/bash
/usr/bin/firejail --apparmor --seccomp --private --dns=1.1.1.1 --dns=1.0.0.1 /usr/bin/firefox -no-remote -private-window
sudo chmod +x /usr/local/bin/firefox
That’ll set it up so that by default, your Firefox session will erase itself completely when you’re done with it.
After that, you’ll want to create a launcher for each of your sandboxed Firefox profiles using Firejail.
sudo cp /usr/share/applications/firefox.desktop /usr/share/applications/firefox-personal.desktop
sudo cp /usr/share/applications/firefox.desktop /usr/share/applications/firefox-work.desktop
sudo cp /usr/share/applications/firefox.desktop /usr/share/applications/firefox-banking.desktop
sudo cp /usr/share/applications/firefox.desktop /usr/share/applications/firefox-shopping.desktop
You’ll either have to edit these files with a text editor, or if you’re using Whisker Menu, you can use MenuLibre.
firejail --apparmor --seccomp --private=/home/user/Desktop/Firejail/Firefox/Personal --dns=1.1.1.1 --dns=1.0.0.1 firefox -no-remote -private %u
firejail --apparmor --seccomp --private=/home/user/Desktop/Firejail/Firefox/Work --dns=1.1.1.1 --dns=1.0.0.1 firefox -no-remote -private %u
firejail --apparmor --seccomp --private=/home/user/Desktop/Firejail/Firefox/Banking --dns=1.1.1.1 --dns=1.0.0.1 firefox -no-remote -private %u
firejail --apparmor --seccomp --private=/home/user/Desktop/Firejail/Firefox/Shopping --dns=1.1.1.1 --dns=1.0.0.1 firefox -no-remote -private %u
I hope this will help you, as well as anyone else who wishes to do this. Security by compartmentalization is amazing, is it not?