请问运行 install 脚本的时候 apt-get 一直卡住,这种怎么解决呢? 本人前端,不太懂运维方面的技术,问了公司的运维,说是 ping 不到外网,无解,我对此保持怀疑态度,有人能帮我看看么 #5 [sentry-cleanup 1/5] FROM docker.io/library/sentry-self-hosted-local:latest #5 DONE 0.1s

#6 [sentry-cleanup 2/5] RUN if [ -n "${http_proxy}" ]; then echo "Acquire::http::proxy "${http_proxy}";" >> /etc/apt/apt.conf; fi #6 DONE 0.3s

#7 [sentry-cleanup 3/5] RUN if [ -n "${https_proxy}" ]; then echo "Acquire::https::proxy "${https_proxy}";" >> /etc/apt/apt.conf; fi #7 DONE 0.5s // 到这一步 apt-get 就卡住了 #8 [sentry-cleanup 4/5] RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/* #8 60.45 Ign:1 http://deb.debian.org/debian bookworm InRelease #8 120.5 Ign:2 http://deb.debian.org/debian bookworm-updates InRelease

最新回复 (4)
  • virusdefender6月前
    引用2
    http://deb.debian.org/ 替换为阿里内网源
  • oneisall89556月前
    引用3
    网络问题,给 apt 和 docker 设置代理,让服务器能科学上网,或者离线安装所需要的依赖
  • perfectlife6月前
    引用4
    建议你让运维处理,这玩意还挺麻烦,构建镜像时候要改好几个地方,不然 build 不成功,另外机器内存大点 16g 的机器跑不了 sentry 了
  • LuckyLauncher6月前
    引用5
    都和你说了“是 ping 不到外网,无解”
    你还“保持怀疑态度”
    你是真固执啊
    但是你是怎么能上这个论坛的?
  • 回复请 登录 or 快速注册
返回