1.Docker 创建ubuntu系统更换 apt-get源
创建Dockerfile并且更新apt源
在Dockerfile中添加如下两句代码:
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list RUN apt-get clean
Dockerfile 文件
FROM ubuntu:latest MAINTAINER itdream "[email protected]" RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list RUN apt-get clean RUN apt-get update RUN apt-get install sudo RUN apt-get install vim RUN apt-get install curl RUN apt-get install wget sudo apt install systemctl RUN curl -sSL https://get.daocloud.io/docker | sh
标签:RUN,get,apt,笔记,install,ubuntu,操作,docker,com
From: https://www.cnblogs.com/zhaoyingjie/p/17148987.html