CentOS 6.5 安装docker

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/angellee1988/article/details/82824463

1、更新163 yum源

cd /etc/yum.repos.d/

mv CentOS-Base.repo CentOS-Base.repo.backup

wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

yum clean all

yum makecache

yum update

 

2、安装docker

 yum install docker-io

如果报错:

[root@localhost ~]# sudo yum install docker-io
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Setting up Install Process
No package docker-io available.
Error: Nothing to do

yum没有找到docker包,更新epel第三方软件库

运行命令:

sudo yum install epel-release ,

之后再执行:sudo yum install docker-io

最后出现如下信息说明安装成功:

Installed:
  docker-io.x86_64 0:1.7.1-2.el6                                                                                        

Dependency Installed:
  libcgroup.x86_64 0:0.40.rc1-26.el6     lua-alt-getopt.noarch 0:0.7.0-1.el6     lua-filesystem.x86_64 0:1.4.2-1.el6    
  lua-lxc.x86_64 0:1.0.11-1.el6          lxc.x86_64 0:1.0.11-1.el6               lxc-libs.x86_64 0:1.0.11-1.el6         

Complete!

安装好后执行命令:

service docker start

启动docker。

 

猜你喜欢

转载自blog.csdn.net/angellee1988/article/details/82824463