custom docker timeout
-
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 -
@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)
-
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)