Does this need an update? Let me know.
docker build -t rust .As a shell with rustc and cargo installed:
docker run -t -i --rm=true -v $(pwd):/source hoverbear/rust /bin/bashTo compile a rust file:
docker run -t -i --rm=true -v $(pwd):/source hoverbear/rust rustc myfile.rsTo build a cargo project:
docker run -t -i --rm=true -v $(pwd):/source hoverbear/rust cargo buildOn SELinux flavors you might need to set permissions properly.
chcon -Rt svirt_sandbox_file_t $(pwd)