【问题标题】:Fixing "Running VCC-compiler failed, signal 5" error when running Varnish Docker images on M1 Mac在 M1 Mac 上运行 Varnish Docker 映像时修复“运行 VCC 编译器失败,信号 5”错误
【发布时间】:2021-10-13 12:58:46
【问题描述】:

当我为 Varnish 运行 Docker 映像时,我收到错误消息“运行 VCC 编译器失败,信号 5”。即使使用最小的 VCL 配置也会发生这种情况。

$ docker run vdmk/varnish
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Waiting 5s before startup...
Copying config from /opt/default.vcl...
Evaluating config variables...
Starting varnishd...
Error:
Running VCC-compiler failed, signal 5
VCL compilation failed
Starting varnishlog...
Can't open log - retrying for 5 seconds
Can't open VSM file (Cannot open /var/lib/varnish/ba99fc13f2d1/_.vsm: No such file or directory
)

我该如何解决?

【问题讨论】:

    标签: docker varnish apple-m1 varnish-vcl


    【解决方案1】:

    问题是您正尝试在 M1 (ARM) Mac 上为 Varnish 运行 x86 Docker 映像。一些 x86 Docker 镜像会运行,但这个不会。这可能与 Varnish VCL 编译器有关。

    解决方法是为 Varnish 使用 ARM 构建的 Docker 映像。 Varnish 的 official Docker images 具有可在 M1 Mac 上运行的 ARM64v8 构建:

    $ docker run varnish
    Warnings:
    VCL compiled.
    
    Debug: Version: varnish-6.6.1 revision e6a8c860944c4f6a7e1af9f40674ea78bbdcdc66
    Debug: Platform: Linux,5.10.25-linuxkit,aarch64,-junix,-smalloc,-sdefault,-hcritbit
    Debug: Child (22) Started
    Info: Child (22) said Child starts
    

    【讨论】:

      猜你喜欢
      • 2015-05-24
      • 2017-10-15
      • 1970-01-01
      • 2022-01-07
      • 2021-07-06
      • 2023-02-08
      • 2021-12-16
      • 2019-07-01
      • 2021-06-03
      相关资源
      最近更新 更多