rust-lang / docker-rust

The official Docker images for Rust
436 stars 88 forks source link

Set default $USER as root #63

Open hikaruna opened 4 years ago

hikaruna commented 4 years ago
$ docker run -it --rm rust:1.45.0-buster cargo new app
error: Failed to create package `app` at `/app`

Caused by:
  could not determine the current user, please set $USER

To solve this

$ docker run -it --rm -e USER=root rust:1.45.0-buster cargo new app

It's very annoying to have to do this. Docker user is of course root in normal use, so I want you to set it as the default value.