David B.
David B.

Reputation: 371

Error when building the blackbox_exporter Docker image

I am just getting started with Prometheus and I may be doing something wrong, but I am getting the following error when trying to build the blackbox_exporter (https://github.com/prometheus/blackbox_exporter) image with:

docker build -t blackbox_exporter . 

Error being:

Step 3 : COPY blackbox_exporter /bin/blackbox_exporter
lstat blackbox_exporter: no such file or directory

When I edit the Dockerfile and update it to:

COPY . /bin/blackbox_exporter

Then it builds properly. Any ideas?

Thanks in advance.

David

Upvotes: 0

Views: 734

Answers (1)

BMitch
BMitch

Reputation: 264861

Looking at the Makefile for that project, the docker image build happens after the application is built by promu. The container is designed to be a minimal environment of busybox and the application binary that you first create outside of docker.

Upvotes: 2

Related Questions