标签:并且 mirror 添加 图片 arc int upd hive ubunt
在Dockerfile中添加如下两句代码:
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get clean
更新apt源的Dockerfile如下:
FROM ubuntu:latest
MAINTAINER kk "kk@qq.com"
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get clean
RUN apt-get update
Docker ubuntu apt-get更换国内源解决Dockerfile构建速度过慢
标签:并且 mirror 添加 图片 arc int upd hive ubunt
原文地址:https://www.cnblogs.com/PyKK2019/p/11062019.html