Git Product home page Git Product logo

docker-jupyterhub-ds's People

Contributors

dclong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-jupyterhub-ds's Issues

Create a user with sudo permission in the Docker image

Currently, there's only the root user in the Docker image and other users are created dynamically after launching a Docker container.
Since you are using JupyterHub,
it is probably better to create a fixed user with sudo permission so that you do NOT have do complicated setup in shell scripts.

About vim mode

I find that extension @axlair/jupyterlab_vim is prebuilt. However, I cannot use vim mode. How to use it?

JVM not found

FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/jvm'

A simple way to fix it is just install openjdk-8-jdk using apt-get. A clean way is to make the the JVM installed by conda visible to other applications, i.e., setup environment variables correctly.

Not able to login with my host username and password

I'm on Ubuntu 20.04.

After running the command given below, which is suggested in http://www.legendu.net/en/blog/my-docker-images/#usage,

   docker run -d --init \
    --hostname jupyterhub-ds \
    --log-opt max-size=50m \
    -p 8000:8000 \
    -p 5006:5006 \
    -e DOCKER_USER=$(id -un) \
    -e DOCKER_USER_ID=$(id -u) \
    -e DOCKER_PASSWORD=$(id -un) \
    -e DOCKER_GROUP_ID=$(id -g) \
    -e DOCKER_ADMIN_USER=$(id -un) \
    -v "$(pwd)":/workdir \
    -v "$(dirname $HOME)":/home_host \
    dclong/jupyterhub-ds /scripts/sys/init.sh

I can see the login page when I visit 127.0.0.1:8000. However, I'm not able to log in with my host username and password.

My password has only 4 characters consisting of only numbers. I wonder if this conflicts with the rule set in the docker image.

How to solve the problem of permission denied

Hi I run the following script to start a container with my current user ahb

#/bin/bash
docker run -d \
    --privileged=true \
    --log-opt max-size=50m \
    -p 8000:8000 \
    -p 5006:5006 \
    -e DOCKER_USER=`id -un` \
    -e DOCKER_USER_ID=`id -u` \
    -e DOCKER_PASSWORD=`id -un` \
    -e DOCKER_GROUP_ID=`id -g`  \
    -e DOCKER_ADMIN_USER=`id -un` \
    -e USER_MEM_LIMIT=4G \
    -e USER_CPU_LIMIT=1 \
    -v /workdir/`id -un`:/workdir \
    -v /home:/home_host \
    dclong/jupyterhub-ds

then I openup my browser and go to the localhost:8000 , I login successfully.
Then in the jupyterlab console when I click the notebook it says

Error
Invalid response: 403 Forbidden

and

Launcher Error
Cannot read property 'path' of undefined

But i can lanuch the console successfully.
Here is some output of my container logs that i think is useful

[I 2018-07-19 10:01:36.321 SingleUserNotebookApp handlers:153] Creating new notebook in /
[I 2018-07-19 10:01:36.488 SingleUserNotebookApp sign:396] Writing notebook-signing key to /home/ahb/.local/share/jupyter/notebook_secret
[W 2018-07-19 10:01:36.540 SingleUserNotebookApp web:1618] 403 POST /user/ahb/api/contents/?1531994496298 (127.0.0.1): Permission denied: Untitled.ipynb
[W 2018-07-19 10:01:36.541 SingleUserNotebookApp handlers:525] Permission denied: Untitled.ipynb
[I 2018-07-19 10:01:39.248 SingleUserNotebookApp handlers:153] Creating new notebook in /
[W 2018-07-19 10:01:39.339 SingleUserNotebookApp web:1618] 403 POST /user/ahb/api/contents/?1531994499223 (127.0.0.1): Permission denied: Untitled.ipynb
[W 2018-07-19 10:01:39.339 SingleUserNotebookApp handlers:525] Permission denied: Untitled.ipynb

How to fix this problem? Thank you. I need your help

How to add a python module?

Sympy module is needed when I use the image. I tried two ways to install it, but only the second way works.

  1. Install the module in a terminal after logged in. Command: pip3 install sympy; Output:
Requirement already satisfied: sympy in ./.local/lib/python3.8/site-packages (1.8)
Requirement already satisfied: mpmath>=0.19 in ./.local/lib/python3.8/site-packages (from sympy) (1.2.1)
  1. Build a image from dclong/jupyterhub-ds with the following Dockerfile:
FROM dclong/jupyterhub-ds
# GIT: https://github.com/dclong/docker-jupyterhub-ds.git

RUN pip3 install --no-cache-dir \
    sympy

The image can be built successfully, and sympy module works.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.