(轉載)CentOS 6.5使用aliyun鏡像來源

(原地址:http://www.linuxidc.com/Linux/2014-09/106675.htm)python

當咱們把CentOS 6.5安裝好之後,可使用這個腳原本使用國內的阿里雲鏡像源linux

#!/bin/bash
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
yum makecache

  

 

 

有了國內的源地址,後面安裝東西就方便了。 
搜索docker,能夠看到docker-io.x86_64和docker-registry.noarch,安裝docker就簡單了。docker

[root@localhost ~]# yum search docker




 Loaded plugins: fastestmirror
 Loading mirror speeds from cached hostfile
 ======================================================== N/S Matched: docker =========================================================
 python-docker-py.x86_64 : An API client for docker written in Python
 docker-io.x86_64 : Automates deployment of containerized applications
 docker-registry.noarch : Registry server for Docker
 Fedora-dockerfiles.noarch : Example dockerfiles to assist standing up containers quickly
 imagefactory-plugins-Docker.noarch : Cloud plugin for Docker
 docker.x86_64 : KDE and GNOME2 system tray replacement docking application


  Name and summary matches only, use "search all" for everything.
相關文章
相關標籤/搜索