标签:
安装Docker服务(centos6.4因为内核版本低,安装完会无法启动)
1.安装epel
#wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
这里要看下centos是否已经自带了epel
#rpm -i epel-release-6-8.noarch.rpm
如果提示Cannot retrieve metalink for repository: epel. Please verify its path and try again
解决办法是编辑/etc/yum.repos.d/epel.repo,把基础的恢复,镜像的地址注释掉
#baseurl
mirrorlist
改成
baseurl
#mirrorlist
2.安装docker
# yum install docker-io
3.启动服务,加入开机启动
# service docker start
# chkconfig docker on
安装官方Docker镜像
1.docker pull centos:centos6
运行镜像启动容器
docker run -t -i centos:centos6 /bin/bash
标签:
原文地址:http://www.cnblogs.com/biboxie/p/4225032.html