为什么APK添加WGET给我代码2错误?

发布于 2025-02-02 00:56:32 字数 290 浏览 4 评论 0原文

我正在我的Docker文件中运行以下内容,

FROM alpine:latest

RUN apk update && apk add --no-cache wget

我会收到以下错误

2个错误; 14个不同的包裹可用 错误:执行人失败运行[/bin/sh -C apk Update&& APK添加 -No-Cache WGET]退出代码2服务“ Cron”无法构建

此命令是否正确?

I am running the following in my docker file

FROM alpine:latest

RUN apk update && apk add --no-cache wget

I get the following error

2 errors; 14 distinct packages available
ERROR: executor failed running [/bin/sh -c apk update && apk add
--no-cache wget] exit code 2 Service 'cron' Failed to build

Is this command correct?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文