docker-rust icon indicating copy to clipboard operation
docker-rust copied to clipboard

Set default $USER as root

Open hikaruna opened this issue 4 years ago • 0 comments

$ 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.

hikaruna avatar Jul 22 '20 10:07 hikaruna