From 145595af19ec07b72e8300525341b6fa0fb6f432 Mon Sep 17 00:00:00 2001 From: Johannes Schickling Date: Thu, 6 Nov 2014 14:15:47 +0100 Subject: [PATCH] env --- rust/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rust/README.md b/rust/README.md index fea9521..f77d0b5 100644 --- a/rust/README.md +++ b/rust/README.md @@ -9,3 +9,14 @@ $ docker run --rm -it -v $(pwd):/source schickling/rust ``` Mount your local source folder to the container and compile & run code inside. + +### Environment variables + +#### `USER` + +The `$USER` environment variable can be specified, which is used by `cargo`. The default is `root`. + +```sh +$ docker run --rm -it -e USER="John Doe" -v $(pwd):/source schickling/rust +``` +