1、首先关闭selinux:
setenforce 0 sed -i ‘/^SELINUX=/c\SELINUX=disabled‘ /etc/selinux/config
2、在Fedora EPEL源中已经提供了docker-io包,下载安装epel:
rpm -ivh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm sed -i ‘s/^mirrorlist=https/mirrorlist=http/‘ /etc/yum.repos.d/epel.repo
3、yum安装docker-io:
yum -y install docker-io
4、启动docker:
service docker start
5、查看docker版本:
docker version
6、查看docker日志:
cat /var/log/dockerW
时间: 2024-11-07 09:13:15