<p>I am trying to install following packages on elasticsearch_exporter container.
I tried yuminstall and apt-get and could not install using them.
Can someone tell how to install packages on this container?</p>
<p><strong>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</strong></p>
<p>Error:
apt-get install python3
sh: apt-get: not found</p>
<p>python3
python3-pip
awscli</p>

Kumar
<p>If you are referring to <code>justwatch/elasticsearch_exporter</code> image, then it is based on <code>busybox</code> image (<a href="https://github.com/prometheus-community/elasticsearch_exporter/blob/master/Dockerfile#L3" rel="nofollow noreferrer">source</a>). There is no package manager inside and adding one would be rather difficult.</p>
<p>An easy way to solve this is to just copy the exporter into regular Debian image, like this:</p>
<pre><code>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  [ &quot;/bin/elasticsearch_exporter&quot; ]
</code></pre>
<p>And here is your exporter with <code>apt</code> inside.</p>
