[英]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.