Sign inSign up

octplane/docker-rust

By octplane

•Updated over 7 years ago

Nightly build of Rust.

Image
0

2.5K

octplane/docker-rust repository overview

⁠rust

Lightweight nightly Rust build including Cargo and GDB

⁠Usage

$ docker run --rm -it -v $(pwd):/source octplane/rust

Mount your local source folder to the container and compile & run code inside.

⁠Compiling code
$ rustc hello-world.rs
$ ./hello-world
> Hello World!
⁠Environment variables

The $USER environment variable can be specified, which is used by cargo. The default is root.

$ docker run --rm -it -e USER="John Doe" -v $(pwd):/source octplane/rust

Tag summary

Content type

Image

Digest

sha256:1f7b455b5…

Size

430.2 MB

Last updated

over 7 years ago

docker pull octplane/docker-rust