简体   繁体   English

构建blackbox_exporter Docker映像时出错

[英]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.

相关问题 错误必须提供“ClientId”选项。 构建泊坞窗图像时 - Error The 'ClientId' option must be provided. When building a docker image 构建泊坞窗图像时堆栈GHCJS项目初始化错误 - Stack GHCJS project initaliziation error when building a docker image Docker:构建镜像时出现“lstat no such file or directory”错误。 文件在那里 - Docker: “lstat no such file or directory” error when building image. File is there 为 jupyter spark notebook 构建 docker 图像时出错 - Error when building docker image for jupyter spark notebook 构建“无法在节点上执行操作”时,Docker Rabbitmq映像错误 - Docker rabbitmq image error when building “Unable to perform operation on node” 获取错误:使用 jenkins 构建 docker 映像时权限被拒绝 - Get error: permission denied when building docker image using jenkins 构建docker镜像时找不到模块错误 - Can't find module error when building docker image 在构建 Docker 图像时安装 wkhtmltopdf 时未找到 Pip 错误 - Pip not found error when installing wkhtmltopdf while building Docker image 从 docker 中的 requirements.txt 构建图像时出错 - Error when building image from requirement.txt in docker 构建Docker镜像时的InsecurePlatformWarning - InsecurePlatformWarning when building Docker image
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM