【发布时间】:2021-11-01 19:11:27
【问题描述】:
我更新了我的 docker 文件以升级 ubuntu,但它开始失败,我不确定为什么...
码头文件:
# using digest for version 20.04 as there is multiple digest that used this tag#
FROM ubuntu@sha256:82becede498899ec668628e7cb0ad87b6e1c371cb8a1e597d83a47fac21d6af3
ENV DEBIAN_FRONTEND=noninteractive
RUN echo "APT::Get::Assume-Yes \"true\";" > /etc/apt/apt.conf.d/90assumeyes
#install tools
#removed for clarity
WORKDIR /azp
COPY ./start.sh .
RUN chmod +x start.sh
CMD ["./start.sh"]
我的豆荚里的偶数
Successfully assigned se-agents/agent-se-linux-5c9f647768-25p7v to aks-linag-56790600-vmss000002
Pulling image "compregistrynp.azurecr.io/agent-se-linux:25319"
Successfully pulled image "comregistrynp.azurecr.io/agent-se-linux:25319"
Created container agent-se-linux
Started container agent-se-linux
Back-off restarting failed container
当我检查 pod 中的错误时,我看到以下消息:
standard_init_linux.go:228: exec user process caused: no such file or directory
甚至不知道该往哪里看。 dockerfile 的唯一区别是 ubuntu 标签,我添加了 1 个工具来安装。我试图将 Prod 中的内容部署到 dev 中,但由于同样的错误而失败。我确信我的 AKS 中有一些东西...
【问题讨论】:
-
你碰巧在windows上吗?如this thread 中所述,它可能是您编辑文件时的行尾
-
这是确切的问题.. 当我部署到我的 AKS 时,我将放置一个任务,将 shell 脚本转换为 Linux 以避免将来出现此问题
-
很高兴它成功了!
标签: dockerfile azure-aks