Install Rust on Docker The offical way of installing rust is to call a shell script from a remote host as follows: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh As documented here: