crawlab-team / crawlab

Distributed web crawler admin platform for spiders management regardless of languages and frameworks. 分布式爬虫管理平台,支持任何语言和框架
https://www.crawlab.cn
BSD 3-Clause "New" or "Revised" License
11.37k stars 1.79k forks source link

如何自己构建可以运行在aarch64的docker镜像? #1336

Closed mike-boost closed 11 months ago

mike-boost commented 1 year ago

目前运行报错: [+] Running 4/4 ✔ Network crawlab_default Created 0.1s ✔ Container crawlab-mongo-1 Started 18.7s ✔ Container crawlab_master Started 0.8s ! master The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

mike-boost commented 1 year ago

如果自己build, 在这一步失败。


 => ERROR [stage-3  5/10] RUN mkdir -p /opt/bin                                                                                                                                                    0.5s
------
 > [stage-3  5/10] RUN mkdir -p /opt/bin:
#0 0.410 exec /bin/sh: exec format error
------
Dockerfile:16
--------------------
  14 |
  15 |     # copy backend files
  16 | >>> RUN mkdir -p /opt/bin
  17 |     COPY --from=backend-build /go/bin/crawlab /opt/bin
  18 |     RUN cp /opt/bin/crawlab /usr/local/bin/crawlab-server
--------------------
ERROR: failed to solve: process "/bin/sh -c mkdir -p /opt/bin" did not complete successfully: exit code: 1