CentOS-Docker安装与使用

来源:互联网 发布:淘宝童装好做吗 编辑:程序博客网 时间:2024/05/14 00:59

 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



参考链接:http://www.centoscn.com/image-text/install/2014/1128/4202.html

Docker 中文指南

http://www.widuu.com/chinese_docker/installation/centos.html

0 0
原创粉丝点击