docker基础培训【ppt】 .ppt
《docker基础培训【ppt】 .ppt》由会员分享,可在线阅读,更多相关《docker基础培训【ppt】 .ppt(21页珍藏版)》请在三一办公上搜索。
1、DOCKER基础培训,主讲人:陈力日期:2014-8-10TD RNC无线软件部,了解Docker,Docker is an open platform for developing,shipping,and running applications.At its core,Docker provides a way to run almost any application securely isolated in a container.,App Development&Operations,Docker,建立一个APP的开发和运维环境你需要考虑?,快速建立N个这样的APP开发和运维环境你
2、应该考虑?,container,container,container,OS version?,Machine halt?,App version?,Configuration?,Dependency?,Compile error?,了解Docker,Why not VMs?用户需要的是高效运行环境而非OS,GuestOS既浪费资源又难于管理,轻量级的Container更加灵活和快速。,VM,Docker,了解Docker,Namespaces:LXC所实现的隔离性主要是来自kernel的namespace,其中pid,net,ipc,mnt,uts 等namespace将container的
3、进程,网络,消息,文件系统和hostname 隔离开Cgroups:实现了对资源的配额和度量。UnionFS:是一种支持将不同目录挂载到同一个虚拟文件系统下(unite several directories into a single virtual filesystem)的文件系统LXC:Linux Container,提供了一种操作系统级的虚拟化方法。借助于namespace的隔离机制和cgroup限额功能来管理container,Architecture,了解Docker,Docker uses a client-server architecture.The Dockerclient
4、talks to the Dockerdaemon,which does the heavy lifting of building,running,and distributing your Docker containers.Both the Docker client and the daemoncanrun on the same system,or you can connect a Docker client to a remote Docker daemon.The Docker client and daemon communicate via sockets or throu
5、gh a RESTful API.,Inside Docker,了解Docker,Docker images:A Docker image is a read-only template.For example,an image could contain an Ubuntu operating system with Apache and your web application installed.Images are used to create Docker containers.Docker Registries:Docker registries hold images.These
6、 are public or private stores from which you upload or download images.The public Docker registry is calledDocker Hub.Docker containers:Each container is created from a Docker image.A Docker container holds everything that is needed for an application to run,You need to Know,image,image,image,image,
7、registry,image,container,image,container,安装Docker,准备一个Ubuntu Trusty 14.04(LTS)(64-bit)版本,如ubuntu-14.04.1-server-amd64.iso Ubuntu Trusty comes with a 3.13.0 Linux kernel,and adocker.iopackage which installs Docker 0.9.1 and all its prerequisites from Ubuntus repository.因此,你很容易得到docker的0.9.1版本,如下:,如果要
8、获取最新的docker版本,你需要location到docker repository,按如下方式执行curl脚本即可:,Docker当前最新版本为1.1.2,Dockerizing Applications:A Hello world,docker run:The combinationrunscontainers.ubuntu:14.04:This is the source of the container we ran.Docker calls this an image.In this case we used an Ubuntu 14.04 operating system ima
9、ge.【也可以直接写ubuntu,这样获取的是ubuntu:latest image】/bin/echo Hello world:told Docker what command to run inside our new containerWhen our container was launched Docker created a new Ubuntu 14.04 environment and then executed the/bin/echocommand inside it.We saw the result on the command:Hello world,two flag
10、s:-tand-i.The-tflag assigns a pseudo-tty or terminal inside our new container and the-iflag allows us to make an interactive connection by grabbing the standard in(STDIN)of the container./bin/bash.:This will launch a Bash shell inside our container.,Hello world,An Interactive Container,Dockerizing A
11、pplications:A Hello world,Lets try running some commands inside our container,A Daemonized Hello world,-dflag tells Docker to run the container and put it in the background,to daemonize it.1e5535038e28:This really long string is called acontainer ID.It uniquely identifies a container so we can work
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ppt docker基础培训【ppt】 docker 基础 培训

链接地址:https://www.31ppt.com/p-2912502.html