Rust, Cargo and GDB
$ docker run --rm -it -v $(pwd):/src akiyoshi83/rust
Mount your local source folder to the container and compile & run code inside.
$ rustc hello-world.rs
$ ./hello-world
> Hello World!
The $USER environment variable can be specified, which is used by cargo. The default is root.
$ docker run --rm -it -e USER="suzuki" -v $(pwd):/src akiyoshi83/rust
Content type
Image
Digest
Size
357.5 MB
Last updated
almost 10 years ago
docker pull akiyoshi83/rust