配置yum的HTTP代理
vi /etc/yum.conf
export proxy=http://IP:PORT/
导入系统HTTP代理环境变量
export http_proxy=”IP:PORT”
配置yum使用163源
mkdir src
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-73.el6.centos.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-urlgrabber-3.9.1-11.el6.noarch.rpm
rpm -aq|grep yum|xargs rpm -e –nodeps
rpm -ivh xxxxxx
cd /etc/yum.repos.d/
先编辑其它repo,将enabled=0
vi 163.repo
1 | [base] |
Enable EPEL
rpm -Uvh http://www.gtlib.gatech.edu/pub/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
使用yum安装Docker
yum -y install docker-io
启动
service docker start
查看日志
cd /var/log
tail -f docker
解决dm_task_get_info_with_deferred_remove, version Base not defined in file libdevmapper.so.1.02 with link time reference报错
yum upgrade device-mapper-event-libs
设置Docker代理
vi /etc/init.d/docker
export HTTP_PROXY=”http://IP:PORT"
export HTTPS_PROXY=”http://IP:PORT"
export ALL_PROXY=socks5://127.0.0.1:1080