zoukankan      html  css  js  c++  java
  • 75)docker 相关一些备忘

    1- 国内加速

    • 1 Daocloud
    daocloud: curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io  #写入加速地址
    systemctl daemon-reload
    systemctl restart docker #重启服务
    
    • 2 qiniu
    cat << EOF >> /etc/docker/daemon.json
    {
      "registry-mirrors": [
        "https://dockerhub.azk8s.cn",
        "https://reg-mirror.qiniu.com",
        "https://registry.docker-cn.com"
      ]
    }
    EOF
    systemctl daemon-reload
    systemctl restart docker #重启服务
    

    2- docker-ce 国内源

    • 1 centos
    cat <<EOF >/etc/yum.repos.d/repo.repo
    [docker-ce]
    name=docker-ce
    baseurl = https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7/x86_64/stable/
    enabled=1
    gpgcheck=0
    EOF
    yum install -y docker-ce  #安装docker-ce
    
    • 2 阿里源
    yum remove docker docker-common container-selinux docker-selinux docker-engine  #卸载旧版
    yum install -y yum-utils device-mapper-persistent-data lvm2 #安装依赖包
    yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo #配置阿里源
    yum makecache fast
    yum -y install docker-ce
    
    • 3 ubuntu
    apt-get update
    apt-get -y install apt-transport-https ca-certificates curl software-properties-common
    curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg |  apt-key add -
    add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
    apt-get update
    apt-get install docker-ce
    
  • 相关阅读:
    w3cscholl的在线代码编辑工具2
    w3cscholl的在线代码编辑工具
    关于 stl的内存分配的深浅拷贝
    色彩模式与色彩空间
    mediacoder固定质量CRF
    集合加泛型的类型转换
    JQuery事件绑定bind、live、on、trigger
    JS构造函数中有return
    SSA与ASS字幕
    同步、异步、阻塞、非阻塞区别与联系
  • 原文地址:https://www.cnblogs.com/lemanlai/p/13096397.html
Copyright © 2011-2022 走看看