【发布时间】:2021-08-17 01:43:47
【问题描述】:
所以我是 docker 和容器的初学者,而且我已经收到这个错误好几天了。 当我的 lambda 函数运行 sagemaker 处理作业时,我收到此错误。 我的核心 python 文件位于 s3 存储桶中。 我的 docker 映像驻留在 ECR 中。 但是我不明白为什么当我使用 python docker 映像运行相同的处理作业时没有收到类似的错误。 PFB 没有抛出任何错误的 python docker 文件。
FROM python:latest
#installing dependencies
RUN pip3 install argparse
RUN pip3 install boto3
RUN pip3 install numpy
RUN pip3 install scipy
RUN pip3 install pandas
RUN pip3 install scikit-learn
RUN pip3 install matplotlib
当我使用安装了 python3 的 ubunutu docker 映像运行此程序时,我只会收到此错误。 PFB 抛出上述错误的 dockerfile。
FROM ubuntu:20.04
RUN apt-get update -y
RUN apt-get install -y python3
RUN apt-get install -y python3-pip
RUN pip3 install argparse
RUN pip3 install boto3
RUN pip3 install numpy==1.19.1
RUN pip3 install scipy
RUN pip3 install pandas
RUN pip3 install scikit-learn
ENTRYPOINT [ "python3" ]
我该如何解决这个问题?
【问题讨论】:
标签: python amazon-web-services docker aws-lambda amazon-sagemaker