创建Dockerfile并且更新apt源
在Dockerfile中添加如下两句代码:
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.listRUN apt-get clean
更新apt源的Dockerfile如下:
FROM ubuntu:latestMAINTAINER kk "kk@qq.com"RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.listRUN apt-get cleanRUN apt-get update