Centos6.5安装和使用docker
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum install docker-io -y service docker on chkconfig docker on 本来是想使用centos7.2玩docker,笔记本上没装,先用centos6.5玩一玩。 docker常用命令: docker pull ubuntu #从Docker Hub的Ubuntu仓库下载最新的Ubuntu操作系统 docker pull ubuntu:14.04 #指定标签下载特定版本的某一镜像 docker images #列出本地主机上已有的镜像 docker inspect ID号 #获取镜像的详细信息 docker search TERM #搜索镜像 支持的常用参数:--automated=false 仅显示自动创建的镜像 --no-trunc=false 输出信息不截断显示 -s 指定仅显示评定为指定星级以上的镜像 docker rmi IMAGE #删除镜像 参数有 -f 表示强行删除镜像 ---------------------------------------------------------------------------------------