3

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

这是我尝试在安装 google fluentd ( https://dl.google.com/cloudagents/install-logging-agent.sh ) 的 GKE 中构建 docker 映像时的输出:

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 的支持。

您知道解决此问题的任何解决方法或解决方法吗?

谢谢你。

4

1 回答 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 -
于 2021-07-16T03:38:51.960 回答