【发布时间】:2017-04-23 01:19:35
【问题描述】:
我正在尝试构建一个基于 amazonlinux 的 docker 容器,它有点像 centos。
我需要的软件包之一是 supervisor,它在官方 repos 上不可用,所以我必须使用 easy_install 或 pip。
问题是,虽然我尝试安装python-setuptools和python-pip,但是当我尝试这样做时:
RUN easy_install supervisor
或
RUN pip install supervisor
它说该命令不存在
/bin/sh: easy_install: command not found
The command '/bin/sh -c easy_install supervisor' returned a non-zero code: 127
我尝试使用完整路径,但结果相同,我看到其他 dockerfiles 人在 centos 图像上这样做。
【问题讨论】:
标签: docker dockerfile