zoukankan      html  css  js  c++  java
  • 百度云使用DockerHub加速器

    如何使用DockerHub镜像加速器
    docker软件源地址:https://mirror.baidubce.com

    适用于 Centos7 修改Docker配置文件vim /etc/sysconfig/docker, 添加下面

    OPTIONS='--registry-mirror=https://mirror.baidubce.com'

     

    修改保存后重启 Docker 以使配置生效。

    $ service docker restart

    vim /etc/sysconfig/docker

    # /etc/sysconfig/docker
    
    # Modify these options if you want to change the way the docker daemon runs
    OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false --registry-mirror=https://mirror.baidubce.com'
    if [ -z "${DOCKER_CERT_PATH}" ]; then
        DOCKER_CERT_PATH=/etc/docker
    fi
    
    # Do not add registries in this file anymore. Use /etc/containers/registries.conf
    # instead. For more information reference the registries.conf(5) man page.
    
    # Location used for temporary files, such as those created by
    # docker load and build operations. Default is /var/lib/docker/tmp
    # Can be overriden by setting the following environment variable.
    # DOCKER_TMPDIR=/var/tmp
    
    # Controls the /etc/cron.daily/docker-logrotate cron job status.
    # To disable, uncomment the line below.
    # LOGROTATE=false
    
    # docker-latest daemon can be used by starting the docker-latest unitfile.
    # To use docker-latest client, uncomment below lines
    #DOCKERBINARY=/usr/bin/docker-latest
    #DOCKERDBINARY=/usr/bin/dockerd-latest
    #DOCKER_CONTAINERD_BINARY=/usr/bin/docker-containerd-latest
    #DOCKER_CONTAINERD_SHIM_BINARY=/usr/bin/docker-containerd-shim-latest

    参考百度云镜像仓库基本操作

  • 相关阅读:
    理想解法
    IEEExtreme 2021
    day_1-python前期学习准备篇
    电梯模拟C++
    java线程_01——————————HelloWorld例子
    Unknown tag (c:forEach) 未知的标签
    自动生成Junit单元测试的插件 CodeProAnalytix
    Log4j笔记----01
    Springboot学习笔记_helloWorld篇
    支持开源,崇尚技术,追求真理,充实人生
  • 原文地址:https://www.cnblogs.com/linjiqin/p/12542989.html
Copyright © 2011-2022 走看看