美文网首页
添加linux 安装源和配置加速docker镜像加速

添加linux 安装源和配置加速docker镜像加速

作者: yuluxs | 来源:发表于2019-04-30 16:12 被阅读0次

    1.添加linux 安装源

    $ vim /etc/apt/sources.list
    
    deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
    deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
    deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
    deb http://mirrors.aliyun.com/ubuntu/ xenial universe
    deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
    deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
    deb http://archive.canonical.com/ubuntu xenial partner
    deb-src http://archive.canonical.com/ubuntu xenial partner
    deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
    deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
    deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
    deb https://apache.bintray.com/couchdb-deb xenial main
    
    更新:
    $ apt-get update
    

    2.配置加速docker镜像加速

    # mkdir -p /etc/docker
    # tee /etc/docker/daemon.json <<-'EOF'
    {
    "registry-mirrors": ["https://8w1wqmsz.mirror.aliyuncs.com"]
    }
    EOF
    # systemctl daemon-reload
    # systemctl restart docker
    

    相关文章

      网友评论

          本文标题:添加linux 安装源和配置加速docker镜像加速

          本文链接:https://www.haomeiwen.com/subject/zxdunqtx.html