Skip to content

Instantly share code, notes, and snippets.

@calebcase
Created March 6, 2018 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calebcase/cb7d4d19a3db1d3ff5075732f9fc82f0 to your computer and use it in GitHub Desktop.
Save calebcase/cb7d4d19a3db1d3ff5075732f9fc82f0 to your computer and use it in GitHub Desktop.
alias rust='docker run -it --rm --user "$(id -u):$(id -g)" --net=host -v "$(pwd)":"/home/$USER" --workdir="/home/$USER" -e HOME="/home/$USER" -e USER="$USER" rust:latest'
cd ~/some-rust-project
rust cargo run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment