Running Rust inside Docker

If you come from Windows, go to bootup section directly.

Installing Docker

See Docker installation guide if you're using Linux.

If you are facing network issues, don't worry, we all have been there. You can try using a proxy or a VPN, or you can use the following commands to install Docker without network access:

echo "
{
    "registry-mirrors": [
        "https://docker-proxy.benx.dev"
    ]
}
" > /etc/docker/daemon.json
sudo systemctl daemon-reload
sudo systemctl restart docker

macOS users can install Docker Desktop from Docker Hub, simply with a few clicks.

Bootup Rust

Once you have Docker installed, you can execute the provided Docker compose file to start the Rust environment

git clone https://github.com/chanbengz/sustcsc-rs
cd sustcsc-rs
docker-compose up -d dev # or stable/nightly for running only

dev is an interactive development environment, where you can write you code outside and run the code (and execute any command) inside the container.