This is a rocker extension for adding conda to an existing docker image. Check out the rocker GitHub page for more details on how Rocker and its extensions work. In short, Rocker allows you to add custom capabilities to existing Docker containers.
The installer uses miniforge instead of conda as it's a lightweight and free.
pip install conda-rocker
To install conda in an image use the --conda
flag
#add conda to the ubuntu:22.04 image
rocker --conda --user ubuntu:22.04
# add conda to the nvidia/cuda image
rocker --conda --user nvidia/cuda