docker build --tag volatility3-centos8:0.0.1 .
Put the collected memory, new linux profile and additional things (like yara rules) in a local directory to be shared within the container. Example:
mkdir -p $HOME/volatility/symbols/linux
mkdir -p $HOME/volatility/yara-rules
mv output.lime $HOME/volatility/
mv linux-volatility-profile.json.xz $HOME/volatility/symbols/linux
mv yara-rule.yar $HOME/volatility/yara-rules
docker run -v $HOME/volatility:/data -ti volatility3-centos8:0.0.1
zip volatility/symbols/linux.zip /data/symbols/linux/linux-volatility-profile.json.xz
python3 vol.py -f /data/output.lime linux.pslist
python3 vol.py -f /data/output.lime linux.lsof
python3 vol.py -f /data/output.lime yarascan.YaraScan --yara-file /data/yara-rules/yara-rule.yar