# 全球 image pip install jupyterlab-server==2.5.0 pip install jupyterlab==3.0.0 ## Dockerfile ``` FROM nvcr.io/nvidia/tensorflow:21.04-tf1-py3 RUN pip install --upgrade jupyterlab jupyterlab-git RUN useradd -ms /bin/bash jovyan RUN echo "c.NotebookApp.notebook_dir = '/home/jovyan'" >> /usr/local/etc/jupyter/jupyter_notebook_config.py #USER jovyan WORKDIR /home/jovyan CMD ["sh", "-c", "jupyter lab --notebook-dir=/home/jovyan --ip=0.0.0.0 --no-browser --allow-root --port=8888 --NotebookApp.token='' --NotebookApp.password='' --NotebookApp.allow_origin='*' --NotebookApp.base_url=${NB_PREFIX}"] ``` ## build image ``` podman build -t core.vtsti.corp/kubeflow/test-nginx:student . ``` ## push image ``` podman push core.vtsti.corp/kubeflow/test-nginx:student ``` ## 修改 configmap :::warning configmap 依照實際名稱做修改 ::: ``` kubectl edit cm -n kubeflow jupyter-web-app-config-hmg7g9826g ``` ### 於 29 行 optinons 加入自行建立的 image ![](https://i.imgur.com/qqtYjcQ.png) ``` ``` > kubectl get po --all-namespaces | grep -i Running | awk '{print "-n",$1,$2}' | xargs -P 10 -n 3 echo "kubectl delete po