Container images with Rust Toolset
Package Rust Toolset into portable container images on Red Hat Enterprise Linux by building on Red Hat Universal Base Images (UBI), so you can compile and run Rust applications in consistent environments across development, continuous integration (CI), and production.
Create a custom UBI-based container with Rust Toolset Copy linkLink copied!
Rust Toolset packages are part of the Red Hat Universal Base Images (UBIs) repositories. To keep the container size small, install only individual packages instead of the entire Rust Toolset.
Before you begin Copy linkLink copied!
- An existing container file. For information on creating Containerfiles, see the Dockerfile reference page.
Procedure Copy linkLink copied!
- For an image based on RHEL 8, enter:
FROM registry.access.redhat.com/ubi8/ubi:latest RUN yum module install -y rust-toolset - For an image based on RHEL 9, enter:
FROM registry.access.redhat.com/ubi9/ubi:latest RUN yum install -y rust-toolset - For an image based on RHEL 10, enter:
FROM registry.access.redhat.com/ubi10/ubi:latest RUN yum install -y rust-toolset