kie*_*ion 7 python dockerfile jupyter-notebook jupyter-lab
我正在尝试使用在 docker 容器中运行的 Jupyter Lab 实例创建一些 python 代码。我已经能够成功创建 Dockerfile 来完成相同的任务,并在浏览器实例上启动 Jupyterlab。但是,一旦我创建笔记本文件,整个实验室就会变得没有响应。
终端日志:
[W 2021-11-20 07:55:33.081 ServerApp] No web browser found: could not locate runnable browser.
[C 2021-11-20 07:55:33.082 ServerApp]
To access the server, open this file in a browser:
file:///root/.local/share/jupyter/runtime/jpserver-1-open.html
Or copy and paste one of these URLs:
http://444ab754c39e:8888/lab?token=e58757f576973c5a0f88ee76da161cdb79b2cb6962c15109
or http://127.0.0.1:8888/lab?token=e58757f576973c5a0f88ee76da161cdb79b2cb6962c15109
[W 2021-11-20 07:55:51.654 LabApp] Could not determine jupyterlab build status without nodejs
[I 2021-11-20 07:55:58.927 ServerApp] Creating new notebook in
[I 2021-11-20 07:55:58.978 ServerApp] Writing notebook-signing key to /root/.local/share/jupyter/notebook_secret
Operation not permitted (bundled/zeromq/src/thread.cpp:309)
qemu: uncaught target signal 6 (Aborted) - core dumped
Operation not permitted (bundled/zeromq/src/thread.cpp:309)
qemu: uncaught target signal 6 (Aborted) - core dumped
Run Code Online (Sandbox Code Playgroud)
Dockerfile:
FROM codait/max-object-detector:arm-arm32v7-latest
RUN apt-get update
RUN apt-get install -y python3
RUN pip install cmake
RUN pip install tensorflow keras
RUN pip install pandas sklearn xgboost pandas-profiling
RUN pip install jupyter -U && pip install jupyterlab
COPY ./ .
EXPOSE 6006:6006
EXPOSE 8888:888
WORKDIR /home/code
ENTRYPOINT ["jupyter", "lab","--ip=0.0.0.0","--allow-root"]
Run Code Online (Sandbox Code Playgroud)
Docker 构建命令:
docker run -p 8888:8888 -p 6006:6006 -v local_dir:docker_dir docker_tag
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
495 次 |
| 最近记录: |