This is a rocker extension for adding cargo 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.
pip install cargo-rocker
To install cargo in an image use the --cargo
flag
#add cargo to the ubuntu:22.04 image
rocker --cargo ubuntu:22.04