zoukankan      html  css  js  c++  java
  • docker构建换源aptget换源pip换源

    macOS docker for desktop 换源

    {
      "debug": true,
      "experimental": false,
      "registry-mirrors": [
        "https://docker.mirrors.ustc.edu.cn",
        "https://hub-mirror.c.163.com"
      ]
    }

    apt-get换源

    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

    pip换源

    新建pip.conf

    [global]
    index-url = https://mirrors.aliyun.com/pypi/simple/
    
    [install]
    trusted-host=mirrors.aliyun.com

    在构建文件中

    COPY ./pip.conf /root/.pip/pip.conf
    程序猿,要对自己狠一点!
  • 相关阅读:
    安卓学习57
    安卓学习56
    安卓学习55
    安卓学习54
    安卓学习53
    安卓学习52
    安卓学习51
    安卓学习50
    安卓学习49
    安卓学习48
  • 原文地址:https://www.cnblogs.com/dongxixi/p/15685351.html
Copyright © 2011-2022 走看看