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

docker run aijcontest2022_official,with the error: unable to find user jovyan: no matching entries in passwd file? #1

Open
aisyun opened this issue Oct 24, 2022 · 4 comments

Comments

@aisyun
Copy link

aisyun commented Oct 24, 2022

docker run aijcontest2022_official,with the error: unable to find user jovyan: no matching entries in passwd file?
what's wrong?

@zhanghuzhenyu
Copy link

I have the same problem, did you solve it?

@lizagonch
Copy link
Collaborator

Hello!

You could try the following to run docker image from your local machine:

Create the user jovyan (with some uid 1000 (if this id is available, if not change it to any other available number), gid 1000) and home directory /home/jovyan. The storage will be mounted to this directory.

To do this put

RUN groupadd -g 1000 jovyan
RUN useradd -g jovyan -u 1000 -m jovyan

before calling

USER jovyan

in the Dockerfile.

Please, let us know if it helps.

@zhanghuzhenyu
Copy link

It works! thanks a lot!

@aisyun
Copy link
Author

aisyun commented Oct 29, 2022

Hello!

You could try the following to run docker image from your local machine:

Create the user jovyan (with some uid 1000 (if this id is available, if not change it to any other available number), gid 1000) and home directory /home/jovyan. The storage will be mounted to this directory.

To do this put

RUN groupadd -g 1000 jovyan RUN useradd -g jovyan -u 1000 -m jovyan

before calling

USER jovyan

in the Dockerfile.

Please, let us know if it helps.

thanks for your kindly and helpful answer,it works~

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

No branches or pull requests

3 participants