docker - Anaconda3.sh 中的 `Failed to execute script entry_point`

标签 docker ubuntu jupyter-notebook anaconda3

我想通过在 docker ubuntu 中使用 Anaconda3 来使用 jupyter notbook,但是当我使用 docker build --platform linux/amd64 . 创建图像时发生以下错误。
我该如何解决?

#8 141.1 
#8 141.1 2022-05-05 04:21:55 (3.62 MB/s) - 'Anaconda3-2019.10-Linux-x86_64.sh' saved [530308481/530308481]
#8 141.1 
#8 141.3 PREFIX=/opt/anaconda3
#8 143.4 Unpacking payload ...
                                                                                          [96] Failed to execute script entry_point concurrent.futures.process._RemoteTraceback: 
#8 151.7 '''
#8 151.7 Traceback (most recent call last):
#8 151.7   File "concurrent/futures/process.py", line 367, in _queue_management_worker
#8 151.7   File "multiprocessing/connection.py", line 251, in recv
#8 151.7 TypeError: __init__() missing 1 required positional argument: 'msg'
#8 151.7 '''
#8 151.7 
#8 151.7 The above exception was the direct cause of the following exception:
#8 151.7 
#8 151.7 Traceback (most recent call last):
#8 151.7   File "entry_point.py", line 71, in <module>
#8 151.7   File "concurrent/futures/process.py", line 483, in _chain_from_iterable_of_lists
#8 151.7   File "concurrent/futures/_base.py", line 598, in result_iterator
#8 151.7   File "concurrent/futures/_base.py", line 435, in result
#8 151.7   File "concurrent/futures/_base.py", line 384, in __get_result
#8 151.7 concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.
------ executor failed running [/bin/sh -c wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh && sh /opt/Anaconda3-2019.10-Linux-x86_64.sh -b -p /opt/anaconda3 &&     rm -f Anaconda3-2019.10-Linux-x86_64.sh]: exit code: 1
Dockerfile 如下所示:
FROM ubuntu:latest

# update
RUN apt-get -y update && apt-get install -y \
    sudo \
    wget \
    vim

#install anaconda3
WORKDIR /opt
# download anaconda package and install anaconda
# archive -> https://repo.continuum.io/archive/
RUN wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh && \
    sh /opt/Anaconda3-2019.10-Linux-x86_64.sh -b -p /opt/anaconda3 && \
    rm -f Anaconda3-2019.10-Linux-x86_64.sh
# set path
ENV PATH /opt/anaconda3/bin:$PATH

# update pip and conda
RUN pip install --upgrade pip

WORKDIR /
RUN mkdir /work

# execute jupyterlab as a default command
CMD ["jupyter", "lab", "--ip=0.0.0.0", "--allow-root", "--LabApp.token=''"]

Mac 12.3.1 苹果 M1
适用于 Mac 4.7.1 的 Docker 桌面

最佳答案

这可能是安装过程中的空间问题,我得到了确切的错误。如果您接受在“默认路径”上安装 Anaconda 的默认选项,Anaconda 将安装在您的用户主目录中,其中空间可能是个问题。对我来说,在安装过程中将默认目录更改为其他目录时已解决。您也可以引用此页面了解类似问题-https://github.com/conda/conda/issues/10143

关于docker - Anaconda3.sh 中的 `Failed to execute script entry_point`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72121932/

相关文章:

Docker 教程 'Getting Started' 不起作用

image - docker ubuntu 容器文件系统

python - 无法连接到Redis容器

ubuntu - Ubuntu 16 上的 Varnish 无法读取 -f 文件自定义 default.vcl

ubuntu - Clang/LLVM header 包含问题(Ubuntu)

php - 在从 pdf 转换的 html 中,图像始终位于顶部

scala - 如何在 Jupyter 内核中将外部 jar 添加到 Scala

jupyter-notebook - caffe/pycaffe 备忘单?

angular - 如何读取配置文件以在打包为 WAR 并部署在 IBM Liberty 上的 Angular 应用程序中设置 API URL

python - 合并两个数据帧而不重复pandas