- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
运行 后出现此错误支架开发 .
Step 1/6 : FROM node:current-alpine3.11
exiting dev mode because first build failed: unable to stream build output: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.49.1:53: read udp 192.168.49.2:35889->192.168.49.1:53: i/o timeout. Please fix the Dockerfile and try again..
这是 skaffold.yml
apiVersion: skaffold/v2beta11
kind: Config
metadata:
name: *****
build:
artifacts:
- image: 127.0.0.1:32000/auth
context: auth
docker:
dockerfile: Dockerfile
deploy:
kubectl:
manifests:
- infra/k8s/auth-depl.yaml
local:
push: false
artifacts:
- image: 127.0.0.1:32000/auth
context: auth
docker:
dockerfile: Dockerfile
sync:
manual:
- src: "src/**/*.ts"
dest: .
我已经尝试了我在网上看到的所有可能的解决方案,包括添加 8.8.8.8 作为 DNS,但错误仍然存在。我正在使用 Linux 并运行 ubuntu,我也在本地使用 Minikube。请协助。
最佳答案
这是一个社区 Wiki 答案,已发布以提高可见性,因此请随时对其进行编辑并添加您认为重要的任何其他详细信息。
在这种情况下:
minikube delete && minikube start
解决了问题,但您可以从重新启动
开始 docker 守护进程 .因为这是
迷你酷贝 集群和
支架 用于其构建
Minikube 的 Docker 守护进程 ,正如
Brian de Alwis 所建议的那样在他的评论中,你可以从:
minikube stop && minikube start
或者
minikube ssh
su
systemctl restart docker
我搜索了类似的错误,在很多情况下,例如
here或
in this thread ,将您的 DNS 设置为可靠的名称,例如
8.8.8.8
也可能有帮助:
sudo echo "nameserver 8.8.8.8" >> /etc/resolv.conf
如果您使用
迷你酷贝 你应该首先:
minikube ssh
su ### to become root
然后运行:
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
以下错误消息:
Please fix the Dockerfile and try again
在与
Dockerfile
类似的情况下可能会有些误导。可能完全没问题,但我们可以在其他部分阅读:
lookup registry-1.docker.io on 192.168.49.1:53: read udp 192.168.49.2:35889->192.168.49.1:53: i/o timeout.
它肯定与失败的 DNS 查找有关。这很好描述
here众所周知的问题。
Get i/o timeout
Get https://index.docker.io/v1/repositories//images: dial tcp: lookup on :53: read udp :53: i/o timeout
Description
The DNS resolver configured on the host cannot resolve the registry’shostname.
GitHub link
N/A
Workaround
Retry the operation, or if the error persists, use another DNSresolver. You can do this by updating your
/etc/resolv.conf
filewith these or other DNS servers:
nameserver 8.8.8.8 nameserver 8.8.4.4
关于docker - Skaffold 开发失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65552399/
我有一个用例,我使用 Github Actions 构建图像一次到 Github 容器存储库。然后我想使用 Skaffold 将已经构建的图像部署到多个 Kubernetes 集群。构建和部署需要分开
运行 后出现此错误支架开发 . Step 1/6 : FROM node:current-alpine3.11 exiting dev mode because first build failed:
我正在向我的 Kubernetes 集群添加 NextJS 前端。我添加了以下文件: apiVersion: apps/v1 kind: Deployment metadata: name: cl
我正在向我的 Kubernetes 集群添加 NextJS 前端。我添加了以下文件: apiVersion: apps/v1 kind: Deployment metadata: name: cl
基本上,我需要在 API 部署之前启动数据库部署。如果数据库未运行,则会在 API 中引发错误。 我弄乱了 artifacts: 中的顺序还有: deploy: kubectl: mani
我将 skaffold 用于基于 k8s 的微服务应用程序。我输入 skaffold dev 和 skaffold run 运行,然后输入 skaffold delete 重新启动所有微服务。 如果我
我不确定如何调试此错误,因为我在终端机上可以确定我的项目ID,并且已经使用gcloud登录了。这是我的-vdebug错误: INFO[0000] starting gRPC server on por
由于我是在 M1 mac 上开发,所以我的 Docker 构建将构建 ARM。我想构建我知道可以使用 --platform 标志构建的 x86_64 图像,但我想使用我的 Skaffold 配置来实现
有没有办法可以将外部环境变量从 Skaffold 传递给 kustomization.yaml . 假设我在下面有一个 kustomization 文件 resources: - ./de
我遇到了 Skaffold,试图简化本地 Docker 镜像开发。我们基本上希望能够快速迭代图像并使用现有的稳定 Helm chart 版本部署它。 在文档中它说: https://github.co
我在本地计算机上运行Multiservices系统,当我在Chrome中键入域时,总是得到: 404 Not Found nginx/1.19.1 考虑客户: Dockerfile.dev: FROM
问题: 在本地,我使用 Skaffold (Kubernetes) 热重载代码的客户端和服务器端。当我关闭它时,它会删除我的服务器 pod,包括我的/migrations/文件夹,因此与我的数据库 a
问题: 当运行 skaffold 并更新监视的文件时,我看到发生文件同步更新并且 nodemon 重新启动服务器,但刷新页面没有显示更改。直到我完全停止 skaffold 并重新启动后,我才看到变化。
Kubernetes 新手在这里。 我有一些奇怪的 Skaffold/Kubernetes 行为。我在 Google Cloud 中工作,但我已更改到本地环境进行测试,结果是一样的。所以可能是我怎么做
有没有办法将 skaffold 配置文件绑定(bind)到命名空间?我想确保 dev、staging 和 prod 部署始终转到正确的命名空间。我知道我可以向 skaffold run 添加命名空间,
我们正在尝试在 Skaffold 下建立一个包含多个微服务应用程序的本地开发环境。我们使用 https://github.com/ahmetb/skaffold-from-laptop-to-clou
我有一个 python 应用程序,它的 docker build 大约需要 15-20 分钟。 这是我的 Dockerfile 或多或少的样子 FROM ubuntu:18.04 ... COPY .
我正在测试 Skaffod,它是微服务开发的一个很棒的工具。但我没有找到任何关于如何在 Java 中使用它的教程。是否支持 Maven 构建? 最佳答案 正在讨论添加 support for Java
我曾尝试遵循建议 here ,具体来说: 运行 docker system prune,释放了大约 6GB 空间 将 docker 桌面首选项中的磁盘镜像大小增加到64 GB(已使用 43 GB) 但
我一直在尝试使用本地 minikube 安装的 skaffold。能够在尽可能接近生产的东西上开发您的项目真是太好了。 如果我使用 getting-started example在 skaffold
我是一名优秀的程序员,十分优秀!