I'm currently working on setting up Docker on a Raspberry Pi 3+ to use Grafana,
following a tutorial that advises installing InfluxDB as a prerequisite using the command
我目前正在Raspberry PI 3+上设置Docker以使用Grafana,遵循一篇教程,该教程建议使用以下命令作为先决条件安装InfluxDB
docker pull influxdb.
However, when I run this command, I encounter the following error: "no matching manifest for linux/arm/v7 in the manifest list entries."
然而,当我运行这个命令时,我遇到了以下错误:“no matching manifest for linux/arm/v7 in the manifest list entries.”
Could someone please help me resolve this issue? I'd greatly appreciate any guidance on how to fix it.
有没有人能帮我解决这个问题?如果有任何关于如何修复它的指导,我将不胜感激。
Thank you!
谢谢!
I tried with old version, but not solved my problem.
我尝试了旧版本,但没有解决我的问题。
更多回答
The error message you're seeing, "no matching manifest for linux/arm/v7 in the manifest list entries," indicates that there is no Docker image available for InfluxDB that is compatible with the architecture of your Raspberry Pi 3+ (which uses an ARMv7 processor).
您看到的错误消息“在清单列表条目中没有匹配的linux/arm/v7清单”,表明没有与您的Raspberry PI 3+(使用ARMv7处理器)的架构兼容的InfluxDB可用的Docker镜像。
Yes, but i'm not sure how to fix
是的,但我不知道该怎么修
优秀答案推荐
To resolve this issue and run InfluxDB on your Raspberry Pi 3+, you can build the InfluxDB Docker image for the ARM architecture manually.
要解决此问题并在您的Raspberry PI 3+上运行InfluxDB,您可以手动为ARM架构构建InfluxDB Docker映像。
Install Docker on Your Raspberry Pi:
If you haven't already, install Docker on your Raspberry Pi by running these commands:
在你的树莓PI上安装Docker:如果你还没有,通过运行以下命令在你的树莓PI上安装Docker:
sudo apt update
sudo apt install docker.io
Pull the InfluxDB Image for ARM:
获取ARM的InfluxDB映像:
Instead of pulling the InfluxDB image directly, you can try pulling an ARM-compatible InfluxDB image from a community repository. You can use the arm32v7/influxdb image like this:
您可以尝试从社区存储库中获取与ARM兼容的InfluxDB映像,而不是直接获取InfluxDB映像。您可以按如下方式使用arm32v7/impxdb映像:
docker pull arm32v7/influxdb
Run InfluxDB Container:
运行InfluxDB容器:
Start an InfluxDB container using the pulled image:
使用拉取的镜像启动InfluxDB容器:
docker run -d --name influxdb -p 8086:8086 arm32v7/influxdb
This command runs InfluxDB as a container, mapping port 8086 on your Raspberry Pi to the InfluxDB port.
该命令将InfluxDB作为容器运行,将Raspberry PI上的端口8086映射到InfluxDB端口。
Check InfluxDB Container Status:
检查InfluxDB容器状态:
You can check if the container is running with:
您可以检查容器是否正在运行:
docker ps
You should see the influxdb container listed.
您应该会看到列出的fluxdb容器。
Now, InfluxDB should be running on your Raspberry Pi 3+ using Docker. You can proceed with your Grafana setup and configure it to connect to the InfluxDB container for data storage and visualization.
现在,InfluxDB应该可以使用Docker在您的Raspberry PI 3+上运行了。您可以继续Grafana设置,并将其配置为连接到InfluxDB容器以进行数据存储和可视化。
This simplified method should work well for most users, and you don't need to manually build InfluxDB from source. However, it's essential to note that the arm32v7/influxdb image may not always be up-to-date compared to official InfluxDB releases, so make sure it meets your requirements.
这种简化的方法应该适用于大多数用户,并且您不需要从源代码手动构建InfluxDB。但是,必须注意的是,与官方的InfluxDB版本相比,arm32v7/impxdb映像可能并不总是最新的,因此请确保它符合您的要求。
更多回答
我是一名优秀的程序员,十分优秀!