[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Problem to deploy Jupyter on Openshift3

OpenShift forces regular user's pods to run as high, per project UIDs for security.  You can relax that security restriction as documented here: https://docs.openshift.org/latest/admin_guide/manage_scc.html#enable-images-to-run-with-user-in-the-dockerfile or update your image as described here: https://docs.openshift.org/latest/creating_images/guidelines.html#use-uid

On Tue, Aug 18, 2015 at 7:20 AM, Fran Barrera <franbarrera6 gmail com> wrote:

Hello I'm trying to install jupyterhub with Dockerfile in Openshift 3. 

The Dockerfile works fine in Docker, but no in Openshift

The build finish correctly but the pod is running but give me this error:

# oc logs jupyter-1-z1l0h
Traceback (most recent call last):
  File "/usr/local/bin/jupyterhub", line 3, in <module>
    from jupyterhub.app import main
  File "/usr/local/lib/python3.4/dist-packages/jupyterhub/app.py", line 93, in <
    class NewToken(Application):
  File "/usr/local/lib/python3.4/dist-packages/jupyterhub/app.py", line 108, in
    name = Unicode(getuser())
  File "/usr/lib/python3.4/getpass.py", line 164, in getuser
    return pwd.getpwuid(os.getuid())[0]
KeyError: 'getpwuid(): uid not found: 1000100000'

It looks like it is running with another user. In the DockerFile I try to assign 'USER root' but i get the same error.

This is the Dockerfile repository:


users mailing list
users lists openshift redhat com

Clayton Coleman | Lead Engineer, OpenShift

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]