Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. JupyterHub
  3. custom docker timeout

custom docker timeout

Scheduled Pinned Locked Moved JupyterHub
3 Posts 2 Posters 1.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jmatres
    wrote on last edited by
    #1

    Hi!

    How can I make sure a custom docker image does not time out?

    adding this into customconfig.py

    c.DockerSpawner.container_image = 'joamatab/gdsfactory:latest'
    

    Here is the link to the image
    https://hub.docker.com/r/joamatab/gdsfactory/tags

    6811a578-bb0f-41a3-88a0-31e3fa2aaabe-image.png

    girishG 1 Reply Last reply
    0
    • J jmatres

      Hi!

      How can I make sure a custom docker image does not time out?

      adding this into customconfig.py

      c.DockerSpawner.container_image = 'joamatab/gdsfactory:latest'
      

      Here is the link to the image
      https://hub.docker.com/r/joamatab/gdsfactory/tags

      6811a578-bb0f-41a3-88a0-31e3fa2aaabe-image.png

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @jmatres It looks like the image is not starting up properly. You can check the docker logs of the container.

      Executing the command: jupyterhub-singleuser --ip=0.0.0.0
      Traceback (most recent call last):
        File "/opt/conda/bin/jupyterhub-singleuser", line 7, in <module>
          from jupyterhub.singleuser import main
        File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser/__init__.py", line 5, in <module>
          from .app import main
        File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser/app.py", line 10, in <module>
          from .mixins import make_singleuser_app
        File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser/mixins.py", line 22, in <module>
          from jinja2 import ChoiceLoader
        File "/opt/conda/lib/python3.8/site-packages/jinja2/__init__.py", line 12, in <module>
          from .environment import Environment
        File "/opt/conda/lib/python3.8/site-packages/jinja2/environment.py", line 25, in <module>
          from .defaults import BLOCK_END_STRING
        File "/opt/conda/lib/python3.8/site-packages/jinja2/defaults.py", line 3, in <module>
          from .filters import FILTERS as DEFAULT_FILTERS  # noqa: F401
        File "/opt/conda/lib/python3.8/site-packages/jinja2/filters.py", line 13, in <module>
          from markupsafe import soft_unicode
      ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/opt/conda/lib/python3.8/site-packages/markupsafe/__init__.py)
      
      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        You can test the image like this:

        root@my:~# docker run -ti joamatab/gdsfactory:latest /bin/bash
        (base) jovyan@9b8a75ecc913:~$ jupyterhub-singleuser --ip=0.0.0.0
        Traceback (most recent call last):
          File "/opt/conda/bin/jupyterhub-singleuser", line 7, in <module>
            from jupyterhub.singleuser import main
          File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser/__init__.py", line 5, in <module>
            from .app import main
          File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser/app.py", line 10, in <module>
            from .mixins import make_singleuser_app
          File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser/mixins.py", line 22, in <module>
            from jinja2 import ChoiceLoader
          File "/opt/conda/lib/python3.8/site-packages/jinja2/__init__.py", line 12, in <module>
            from .environment import Environment
          File "/opt/conda/lib/python3.8/site-packages/jinja2/environment.py", line 25, in <module>
            from .defaults import BLOCK_END_STRING
          File "/opt/conda/lib/python3.8/site-packages/jinja2/defaults.py", line 3, in <module>
            from .filters import FILTERS as DEFAULT_FILTERS  # noqa: F401
          File "/opt/conda/lib/python3.8/site-packages/jinja2/filters.py", line 13, in <module>
            from markupsafe import soft_unicode
        ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/opt/conda/lib/python3.8/site-packages/markupsafe/__init__.py)
        
        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search