Install Docker in CentOS 6.4

Posted on

Almost all the tips come from liguidweb.

  • Add epel repo and update
rpm -iUvh
yum update 

If yum complains that

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

Then try to run following command to fix it:

yum upgrade ca-certificates --disablerepo=epel
  • Install and configure docker
yum  install docker-io
service docker start
chkconfig docker on
  • Pull an image
docker pull centos

If you want to use other registry mirror, please add following line to the /etc/sysconfig/docker


Note that the argument is called other_args. The OPTIONS which is applicable in CentOS 7 does not work in CentOS 6.4. I use Tabao Docker accelerator so my argument looks like --registry-mirror=

Leave a Reply

Your email address will not be published.