我正在尝试使用 minikube 构建微服务镜像并将其部署到在我的开发机器上运行的单节点 Kubernetes 集群。我正在使用 Google 的云原生微服务演示应用程序 Online Boutique 来了解 Kubernetes、Istio 等技术的使用。
链接到 github 存储库:microservices-demo
在遵循安装过程的同时,运行命令 skaffold run
要构建和部署我的应用程序,我收到了一些错误:
Step 10/11 : RUN apt-get -qq update && apt-get install -y --no-install-recommends curl
---> Running in 43d61232617c
W: GPG error: http://deb.debian.org/debian buster InRelease: At least one invalid signature was encountered.
E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
W: GPG error: http://deb.debian.org/debian buster-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.
W: GPG error: http://security.debian.org/debian-security buster/updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://security.debian.org/debian-security buster/updates InRelease' is not signed.
failed to build: couldn't build "loadgenerator": unable to stream build output: The command '/bin/sh -c apt-get -qq update && apt-get install -y --no-install-recommends curl' returned a non-zero code: 100
我在尝试构建 loadgenerator 时收到这些错误。
我该如何解决这个问题?
最佳答案
遇到这些错误的原因有几个:
sudo apt-get clean
和 sudo apt-get update
.docker image prune -f
和 docker container prune -f
以删除未使用的数据并释放磁盘空间。apt-get
命令与 --allow-unauthenticated
或 --allow-insecure-repositories
旗帜。根据docs :Ignore if packages can't be authenticated and don't prompt about it. This can be useful while working with local repositories, but is a huge security risk if data authenticity isn't ensured in another way by the user itself.
如果这有帮助,请告诉我。
关于docker - 至少遇到一个无效签名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62473932/