天朝的网,你又不是不懂。我最爱的红杏最近也用不了了。FUCK GFW。

在这,我们使用DaoCloud的加速器,打开网址

  1. https://dashboard.daocloud.io/mirror

  

找到选择操作手册,目测2.0版本需要安装什么主机监控程序,不感兴趣,直接上1.0。当然点击CentOS了。

配置,找到CentOS6

官方提供了脚本,直接复制运行

  1. sudo sed -i "s|other_args=\"|other_args=\"--registry-mirror=http://c877b440.m.daocloud.io |g" /etc/sysconfig/docker
  2. sudo sed -i "s|OPTIONS='|OPTIONS='--registry-mirror=http://c877b440.m.daocloud.io |g" /etc/sysconfig/docker
  3. sudo service docker restart

该脚本可以将--registry-mirror加入到你的Docker配置文件/etc/sysconfig/docker中。

  1. [root@localhost ~]# cat /etc/sysconfig/docker

查看内容是否写进去。如果没有,也可以用VIM将内容写进去。

  1. [root@localhost ~]# cat /etc/sysconfig/docker
  2. # /etc/sysconfig/docker
  3. #
  4. # Other arguments to pass to the docker daemon process
  5. # These will be parsed by the sysv initscript and appended
  6. # to the arguments list passed to docker -d
  7.  
  8. other_args="--registry-mirror=http://c877b440.m.daocloud.io"
  9. DOCKER_CERT_PATH=/etc/docker
  10. # Resolves: rhbz#1176302 (docker issue #407)
  11. DOCKER_NOWARN_KERNEL_VERSION=1
  12. # Location used for temporary files, such as those created by
  13. # # docker load and build operations. Default is /var/lib/docker/tmp
  14. # # Can be overriden by setting the following environment variable.
  15. # # DOCKER_TMPDIR=/var/tmp

好了,现在下载镜像速度杠杠的。现在的任务就是尽情徜徉在开源的世界里吧。

CentOS6安装DaoCloud加速器的更多相关文章

  1. Docker配置daocloud加速器

    首先注册daocloud网站的账号(免费的!!!),并登陆自己的账号,并在这里获取自己的daocloud加速器配置脚本. 获取到自己的daocloud加速器配置脚本之后只需要在已安装Docker服务的 ...

  2. Centos6 安装vnc

    Centos6 安装vnc 1. 安装 使用yum方式安装 yum install tigervnc-server tigervnc #启动 vncserver #重启动 /etc/init.d/vn ...

  3. centos6 安装vsftpd

    centos6 安装vsftpd vsftpd一般选择yum安装,以下是安装和配置过程 如果是centos6想要安装的话一般是编译安装 1.安装 yum安装 yum install vsftpd 编译 ...

  4. oracle 11g centos6 安装

    选型:32位的内存是个瓶颈,已经是64位的时代了.使用64位的CentOS6 和 64位的Oracle 11g R2在虚拟机器安装,采用hostonly方式设置网络注意:能上网的网卡要设置一下ICS( ...

  5. CentOS6 安装Sendmail + Dovecot + Roundcubemail

    前言 本文是继CentOS6 安装Sendmail + Dovecot + Squirrelmail 关于邮箱服务器配置的第二篇文章,因为关于使用Sendmail进行相关配置的文章.资料等太老,而且资 ...

  6. centos6 安装配置ss笔记

    2018-05-17 centos6 安装配置ss笔记 操作环境:Centos 6 x86_64 bbr 服务器地址:美国 1.准备VPS 在https://www.bwh1.net可购买,购买时已默 ...

  7. Centos6安装Percona-tools工具

    Centos6安装Percona-tools工具 环境:centos6.x yum -y install perl-DBI yum -y install perl-DBD-MySQL yum -y i ...

  8. Centos6安装FreeSWITCH 1.5时./configure问题解决记录

    系统:Centos 6.4 64位: FreeSWITCH版本:1.5 具体的安装过程参考FreeSWITCH 官网wiki (也可以参考我的博客<Centos6安装FreeSWITCH> ...

  9. CentOS6 安装并破解Jira 7

    CentOS6 安装并破解Jira 7 JIRA软件是为您的软件团队的每个成员构建的,用来规划,跟踪和发布优秀的软件. https://confluence.atlassian.... 最低硬件要求及 ...

随机推荐

  1. Laravel创建项目和安装PHPStorm IDE插件

    一.win10下安装composer1.下载composer.phar,放入php的安装目录https://getcomposer.org/download/1.4.2/composer.phar 2 ...

  2. hdu - 4974 - A simple water problem(贪心 + 反证)

    题意:N个队(N <= 100000),每一个队有个总分ai(ai <= 1000000),每场比赛比赛两方最多各可获得1分,问最少经过了多少场比赛. 题目链接:http://acm.hd ...

  3. brew Error: Formulae found in multiple taps

    Mac PHP brew install php56-apcu Error: Formulae found in multiple taps: * homebrew/php/php56-apcu * ...

  4. Atitit.swift 的新特性 以及与java的对比 改进方向attilax 总结

    Atitit.swift 的新特性 以及与java的对比 改进方向attilax 总结 1. defer关键字1 2. try!形式存在的“不失败”机制3 3. Guard 4 4. swift的新语 ...

  5. SRIO常用缩写

    HELLO:Header Encoded Logical Layer Optimized (HELLO) format FTYPE:format type TTYPE:transaction type ...

  6. foxmail 客户端 LOGIN Login error password error

    显示这个错误是我在更换电脑时,将E:\Foxmail 7.2\Storage\15167136106@163.com 账户 移动到新的电脑上,并在新电脑上创建用户,总是报:账户或密码错误 我输入的密码 ...

  7. hive beeline 的server启动与连接

    启动hiveServer2 启动beeline之后 连接 !connect jdbc:hive2://localhost:10000/default 启动的时候连接 /beeline -u jdbc: ...

  8. 转载了个js代码

    document.selection.createRange方法 document.selection.createRange() 根据当前文字选择返回 TextRange 对象,或根据控件选择返回 ...

  9. Hibernate 中的DetachedCriteria。

    今天看到项目中在Web层使用DetachedCriteria进行多条件查询操作,如果在web层做持久层操作,事物还存在吗?这是我第一反应,于是乎就去网上查资料了.结果发现即在web层,程序员使用Det ...

  10. 从零开始学android -- Service

    废话不多说了,Service是四大组件之一,是一个后台处理长时间运行在主线程不需要依赖ui界面显示的应用组件,切记不能在service中做耗时操作,会阻塞主线程,要做也要在service中开个子线程做 ...