Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default $USER as root #63

Open
hikaruna opened this issue Jul 22, 2020 · 0 comments
Open

Set default $USER as root #63

hikaruna opened this issue Jul 22, 2020 · 0 comments

Comments

@hikaruna
Copy link

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

dak2 added a commit to dak2/rust-wasm that referenced this issue Jan 5, 2023
cargo generateの際に `Error: could not determine the current user, please set $USER`エラーが出るため、USER指定が必要

rust-lang/docker-rust#63
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant