docker 在centos上的安装实践

使用yum安装docker

 yum -y install docker-io

[root@localhost goblin]# yum -y install docker-io
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.ustc.edu.cn
 * extras: mirrors.aliyun.com
 * updates: mirrors.huaweicloud.com
No package docker-io available.
Error: Nothing to do

出现这种错误应该是因为源里没有这个软件包,

这时需要安装 yum install epel-release

EPEL (Extra Packages for Enterprise Linux)是基于Fedora的一个项目,为“红帽系”的操作系统提供额外的软件包,适用于RHEL、CentOS和Scientific Linux.

error:

  1. 

Transaction Check Error:
  file /usr/bin/docker from install of docker-io-1.7.1-2.el6.x86_64 conflicts with file from package docker-1.5-5.el6.x86_64

Error Summary

  会出现这种错误是因为先安装了docker后再安装了docker-io,

  这时候需要

  yum remove docker 后再yum install docker-io即可。

原文地址:https://www.cnblogs.com/goblinn/p/9408110.html