CentOS 6.5 安装docker

1、更新163 yum源

1
2
3
4
5
6
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

1
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第三方软件库
运行命令:

1
sudo yum install epel-release

之后再执行:

1
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!

安装好后执行命令:

1
service docker start

启动docker。


CentOS 6.5 安装docker
https://river106.cn/posts/690edb09.html
作者
river106
发布于
2018年9月23日
许可协议