Debian Stretch上的谷歌Fluentd错误(谷歌日志代理)

3

我将我的docker镜像从php:7.1.11-apache升级到php:7.2.0-apache(FROM debian:stretch-slim)后,google-fluentd软件包未找到/安装。

当我尝试在GKE中构建docker镜像并安装google fluentd (https://dl.google.com/cloudagents/install-logging-agent.sh)时,输出如下:

W: GPG error: http://packages.cloud.google.com/apt google-cloud-logging-wheezy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3746C208A7317B0F
W: The repository 'http://packages.cloud.google.com/apt google-cloud-logging-wheezy InRelease' is not signed.

当我运行容器镜像时,由于未安装该软件,出现了以下错误:
/bin/sh: 1: /etc/init.d/google-fluentd: not found

按照指南https://cloud.google.com/logging/docs/agent/installation,我发现支持Debian 8。

您知道是否有任何解决此问题的变通方法或修复方法吗?

谢谢。


https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud/issues/199 - Andrea Brai
1个回答

0

首先添加apt-key

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接