https://blog.tankywoo.com/docker/2014/05/08/docker-4-summary.html
https://yeasy.gitbooks.io/docker_practice/content/basic_concept/container.html
centos7.x系列的yum源中自带了docker的rpm包,安装比较简单
# yum install docker -y
安装过程中可能会遇到lvm2包依赖冲突,如不使用,卸载即可
# yum remove lvm2
启动服务
# service docker start
查看版本
# docker -v
Docker version 1.10.3, build d381c64-unsupported
获取BusyBox镜像
# docker pull busybox
创建容器并echo一句话
# docker run busybox /bin/echo Starting docker trip?
Starting docker trip?
centos6.x系列需要安装epel源,并且升级内核到3.10版本否则docker不能正常运行
基于git克隆安装https://github.com/llitfkitfk/docker-tutorial-cn
# git clone git://github.com/llitfkitfk/docker-tutorial-cn.git
# cd docker-tutorial-cn/
# ./docker_install.sh
##执行此步骤如果报下文错误需要修改/etc/yum.repos.d/epel.repo文件,取消baseurl的注释,注释掉mirrorlist
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
# ./docker_config.sh ##可根据实际情况修改docker image的储存路径,此处配置到/mnt/docker,默认路径是/var/li