[英]WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.9/main: No such file or directory
I configured deis workflow in aws eks cluster.我在 aws eks 集群中配置了 deis 工作流程。 after that created deis apps and deployed in deis local repository by,
之后创建 deis 应用程序并部署在 deis 本地存储库中,
git push test test:master
when deploying, docker file is executed.部署时,执行 docker 文件。 here is my docker file
这是我的 docker 文件
FROM mhart/alpine-node:12
#FROM ubuntu:18.04
ARG SOURCE_VERSION=na
ENV SOURCE_VERSION=$SOURCE_VERSION
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/v3.9 --update bash && rm -rf /var/cache/apk/*
#apt-get update &&\
#apt-get install -y make gcc wget
WORKDIR /app
ADD . .
RUN npm install
EXPOSE 3200
CMD ["node", "app.js"]
this results error like,这会导致错误,例如,
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.9/main: temporary error (try again later)
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.9/main: No such file or directory
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.9/community: temporary error (try again later)
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.9/community: No such file or directory
ERROR: unable to select packages:
bash (no such package):
required by: world[bash]
The command '/bin/sh -c apk add --update bash && rm -rf /var/cache/apk/*' returned a non-zero code: 1
remote: 2021-11-15 13:30:22.569253 I | Error running git receive hook [Build pod exited with code 1, stopping build]
To ssh://deis-builder.app-test.paceup.io:2222/pu-api-gateway.git
! [remote rejected] test -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://git@deis-builder.app-test.paceup.io:2222/pu-api-gateway.git'
I am totally new to docker, deis and eks.我对 docker、deis 和 eks 完全陌生。 if anyone can help it would be grateful
如果有人可以提供帮助,将不胜感激
Finally found the answer is that we have configured nodegroup setup in amazon linux which didn't support this deployment.最后找到答案是我们在amazon linux中配置了nodegroup setup,不支持这种部署。 we changed the nodegroup for eks optimized ubuntu and deployed the app using docker and working fine.
我们为 eks 优化的 ubuntu 更改了节点组,并使用 docker 部署了应用程序并且工作正常。
I had this problem when my machine had many symptoms of a.network configuration problem:当我的机器有很多网络配置问题的症状时,我遇到了这个问题:
Answer insofar is: change the machine and test whether it does not work only on your machine.答案是:换机测试是否只在你的机器上不行。 If that is true, the workaround is already done.
如果是这样,则解决方法已经完成。 As the next step, try to fix any other.network problems, and it is likely that this will get rid of the warning.
下一步,尝试修复任何其他网络问题,这很可能会消除警告。
UPDATE: The problem was a running container that gave my machine its own.network.更新:问题是一个正在运行的容器,它为我的机器提供了自己的网络。 When I ran
docker-compose down
, the.network worked again.当我运行
docker-compose down
,.network 再次工作。 When I removed the.network from the docker-compose file, the download from inside the container worked again, the warning in question was gone.当我从 docker-compose 文件中删除 .network 时,容器内部的下载再次运行,相关警告消失了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.