fn run_command_in_docker(image: &str) -> Command {
    let mut cmd = Command::new("docker");

    // Setups the command to run in the docker image.
    cmd.args(["run", "--rm"]);
    cmd.args(["-e", &format!("RUSTUP_TOOLCHAIN={}", super::TOOLCHAIN_NAME)]);
    cmd.args(["--platform", "linux/amd64", "--entrypoint", "", "-i", image]);

    cmd
}
Setups a command to be run in the docker image.

Sets the toolchain override to [`super::TOOLCHAIN_NAME`].
crates/build/src/command/docker.rs