Anaconda installer in containers?

I have been using the anaconda installer for years to generate VM images and installation tree s for a variety of purposes, but mostly to debug kickstart scripts and building pre-made tar files for the anaconda “image” option when kickstarting system as this speeds up the installation process significantly when installation many systems.

Recently I have been trying to automate building of such images in CI pipelines. However running anaconda in a container (either of docker or podman) in “dirinstall” mode fails with errors related to allocating storage. By patching the “bilvet” python module that pyanaconda uses I am able to get the installation to complete without errors, and with the same end result as running the same anaconda command on either a physical or virtual machine.

Have anyone been successful in running anaconda, or lorax/livemedia-creator which uses anaconda, inside a container?