We are experimenting with Nix (
https://nixos.org/nix/) to create reproducible "containers" of the tools used to build a model. Nix allows to pin versions of R, python, R/Python packages, etc. and all the underlying c++/fortran/etc. libraries all the way down to (but excluding) the kernel. Deployment (or sharing with other team members, Nix works on both Linux and MacOS) of such "derivations" is also very easy if Nix is installed everywhere since the dependencies are not visible by other derivations and I can deploy e.g. R models requiring different versions of dplyr package on the same node. It looks very promising, here (
https://blog.wearewizards.io/why-docker-is-not-the-answer-to...) is a blog post which I found very helpful.