【1】CentOS 6 安装 docker-io
- 安装镜像源
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
yum clean all && yum makecache
yum install -y docker-io
- 启动,开机自启动
service docker start
chkconfig docker on
- 测试安装结果
docker run hello-world
- 创建 docker 用户组,让普通用户可以使用docker
groupadd docker
usermod -aG docker felix
/etc/init.d/docker restart
su - felix
docker run hello-world