简体   繁体   English

如何使用 docker 和 ubuntu 运行 jupyter notebook?

[英]How to run jupyter notebook using docker with ubuntu?

I am very new to docker and could not figure out how to search google to answer my question.我对 docker 很陌生,不知道如何搜索谷歌来回答我的问题。

I am using windows OS我正在使用 windows 操作系统

I've created docker image using我创建了 docker 图像使用

FROM python:3
RUN apt-get update && apt-get install -y python3-pip
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN pip3 install jupyter
RUN useradd -ms /bin/bash demo
USER demo
WORKDIR /home/demo
ENTRYPOINT ["jupyter", "notebook", "--ip=0.0.0.0"]

and it worked fine.它工作得很好。 Now I've tried to create it again but with different libraries in requirements.txt it fails to build, it outputs ERROR: Could not find a version that satisfies requirement apturl==0.5.2 .现在我尝试再次创建它,但在 requirements.txt 中使用不同的库它无法构建,它输出ERROR: Could not find a version that satisfies requirement apturl==0.5.2 When I search what apturl is, I think we need ubuntu OS to install it.当我搜索 apturl 是什么时,我认为我们需要 ubuntu 操作系统来安装它。

So my question is how do you create a jupyter notebook server using docker with ubuntu libraries?所以我的问题是如何使用 docker 和 ubuntu 库创建一个 jupyter 笔记本服务器? (I am using Windows OS). (我正在使用 Windows 操作系统)。 Thanks!谢谢!

try upgrading pip.尝试升级 pip。

RUN pip install -U pip
RUN pip3 install -r requirements.txt

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 docker 的特定文件夹中运行 jupyter notebook - How to run a jupyter notebook at a particular folder in docker 在Docker的背景中运行Jupyter笔记本 - Run Jupyter Notebook in the Background on Docker VSCode:如何通过远程服务器在 docker 容器中运行 Jupyter notebook? - VSCode: How to run a Jupyter notebook in a docker container, over a remote server? 如何在不通过 jupyter notebook 运行的 docker 镜像中定义设置 - How to define the setting in the docker image not run through jupyter notebook 如何使用 docker 镜像为 Jupyter 笔记本挂载本地文件夹? - How to mount a local folder using docker image for Jupyter notebook? "当 Jupyter Notebook 已经与 docker compose 一起使用时,如何让它与 docker run 一起运行?" - How to get a Jupyter Notebook to run with docker run when it already works with docker compose? 如何从Ubuntu服务器上的Docker远程访问(从网络)到运行在Docker上的Jupyter Notebook - How to remote access(from out net) to jupyter notebook running on docker on ubuntu server 如何在Docker中运行不属于预先构建的Docker映像的新Jupyter Notebook文件? - How to run a new Jupyter Notebook file that's not part of a pre-built docker image in docker? Jupyter笔记本URL的令牌在Ubuntu上的Docker映像中被截断 - Jupyter notebook URL's token gets truncated in Docker image on Ubuntu 使用jupyter笔记本运行docker图像的问题 - problem running docker image using jupyter notebook
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM