【发布时间】:2021-01-20 03:42:52
【问题描述】:
我对 docker 很陌生,不知道如何搜索谷歌来回答我的问题。
我正在使用 Windows 操作系统
我已经创建了 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"]
而且效果很好。现在我尝试再次创建它,但在 requirements.txt 中使用不同的库它无法构建,它输出ERROR: Could not find a version that satisfies requirement apturl==0.5.2。当我搜索apturl是什么时,我认为我们需要ubuntu OS来安装它。
所以我的问题是如何使用带有 ubuntu 库的 docker 创建一个 jupyter notebook 服务器? (我使用的是 Windows 操作系统)。谢谢!
【问题讨论】:
标签: docker ubuntu jupyter-notebook