gpt4 book ai didi

linux - 在 elasticsearch_exporter 容器上安装 python3 python3-pip 和 awscli

转载 作者:行者123 更新时间:2023-12-02 20:41:00 26 4
gpt4 key购买 nike

我正在尝试在 elasticsearch_exporter 容器上安装以下软件包。
我尝试了 yuminstall 和 apt-get 并且无法使用它们进行安装。
有人可以告诉如何在这个容器上安装软件包吗?
Linux elasticsearch-exporter-6dbd9cf659-7km8x 5.2.9-1.el7.elrepo.x86_64 #1 SMP Fri Aug 16 08:17:55 EDT 2019 x86_64 GNU/Linux
错误:
apt-get 安装 python3
sh:apt-get:未找到
python 3
python3-pip
awscli

最佳答案

如果您指的是justwatch/elasticsearch_exporter图片,则基于busybox图片(source)。里面没有包管理器,添加一个会相当困难。
解决此问题的一种简单方法是将导出器复制到常规 Debian 镜像中,如下所示:

FROM justwatch/elasticsearch_exporter:1.1.0 as source

FROM debian:buster-slim
COPY --from=source /bin/elasticsearch_exporter /bin/elasticsearch_exporter

EXPOSE 9114
ENTRYPOINT [ "/bin/elasticsearch_exporter" ]
这是您的导出商, apt里面。

关于linux - 在 elasticsearch_exporter 容器上安装 python3 python3-pip 和 awscli,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63814157/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com