打包docker镜像时,避免apt-get update执行出错,优先考虑换源再去排查其他可能的原因!
- 换成aliyun源的dockerfile配置
RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN sed -i s@/security.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list
打包docker镜像时,避免apt-get update执行出错,优先考虑换源再去排查其他可能的原因!
RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN sed -i s@/security.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list
本文标题:docker镜像apt-get换源
本文链接:https://www.haomeiwen.com/subject/avihgltx.html
网友评论