centos 6.5安装docker

安装linux,须要系统内核为3.x以上,若是centos版本为7如下,先升级系统内核linux

1.关闭selinuxdocker

setenforce 0
sed -i '/^SELINUX=/c\SELINUX=disabled' /etc/selinux/config

2.下载安装epelcentos

wget http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
sed -i 's/^mirrorlist=https/mirrorlist=http/' /etc/yum.repos.d/epel.repo

3.安装docker-iocode

yum -y install docker-io

4.启动dockerblog

service docker start


5.查看docker版本get

docker version
相关文章
相关标签/搜索