[英]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: 我刚刚开始使用Prometheus ,可能做错了一些,但是在尝试使用以下方式构建blackbox_exporter( https://github.com/prometheus/blackbox_exporter )映像时遇到以下错误:
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: 当我编辑Dockerfile并将其更新为:
COPY . /bin/blackbox_exporter
Then it builds properly. 然后,它会正确构建。 Any ideas? 有任何想法吗?
Thanks in advance. 提前致谢。
David 大卫
Looking at the Makefile for that project , the docker image build happens after the application is built by promu. 查看该项目的Makefile ,将在promu构建应用程序之后进行docker映像构建。 The container is designed to be a minimal environment of busybox and the application binary that you first create outside of docker. 容器设计为最小环境的busybox和您首先在docker外部创建的应用程序二进制文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.