您的位置:首页 > 运维架构 > Docker

docker 感性体验

2014-09-14 13:17 134 查看

Docker 1.0正式发布!1.0 版本包含很多新特性,这也是 Docker 的首个产品级的版本。从今天开始,你将会一直听到一个新的概念 —— Docker as a platform ,其组件包括 Docker 引擎、容器运行时和打包工具以及 Docker Hub,这是一个基于云端的协作、内容和工作流自动化的服务。


1 在Virtualbox虚拟机装好debian,确认内核版本


root@localhost:/home/chksong# uname -a
Linux localhost 3.14-2-amd64 #1 SMP Debian 3.14.15-2 (2014-08-09) x86_64 GNU/Linux


2 安装 docker


root@localhost:/home/chksong# apt-get update
root@localhost:/home/chksong# apt-get install docker.io


3 创建一个CentOS虚拟系统


root@localhost:/home/chksong# docker pull centos
pulling repository centos
5a1ebaa356ff: Download complete
68eb857ffb51: Downloading 37.51 MB/74.19 MB 17m22s


4 进入虚拟的CentOS系统


docker run -i -t centos /bin/sh


5 验证下是否是centos


sh-4.2# cat /etc/redhat-release

CentOS Linux release 7.0.1406 (Core)


6 整个工作环境的有图有真相

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: