|
@ -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. |
|
|
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 |
|
|
|
|
|
``` |
|
|
|
|
|
|