Docker在Linux系统的安装

默认docker只有在centos6.5以上机器才能使用yum直接安装,如果其他版本需要安装centos扩展源epel

sed -i '/SELINUX/s/enforcing/disabled/g' /etc/selinux/config 
wget http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh  epel-release-6-8.noarch.rpm
yum install  lxc  libcgroupdevice-mapper-event-libs
yum install docker-io
yum install  device-mapper* -y

安装完后:
启动docker进程:/etc/init.d/docker start
查看docker进程:ps -ef |grep docker

注意:如果是新系统可能会报-bash: wget: command not found,就是没有wget命令,这就要安装了,运行命令:yum -y install wget

你可能感兴趣的:(Docker)