CN105677442A - 一种基于容器虚拟化的部署方法 - Google Patents

一种基于容器虚拟化的部署方法 Download PDF

Info

Publication number
CN105677442A
CN105677442A CN201510995394.3A CN201510995394A CN105677442A CN 105677442 A CN105677442 A CN 105677442A CN 201510995394 A CN201510995394 A CN 201510995394A CN 105677442 A CN105677442 A CN 105677442A
Authority
CN
China
Prior art keywords
container
environment
deployment
mirror image
virtualized
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510995394.3A
Other languages
English (en)
Inventor
覃璐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Yi Fang Softcom Ltd
Original Assignee
Hunan Yi Fang Softcom Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Yi Fang Softcom Ltd filed Critical Hunan Yi Fang Softcom Ltd
Priority to CN201510995394.3A priority Critical patent/CN105677442A/zh
Publication of CN105677442A publication Critical patent/CN105677442A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明涉及系统环境部署技术领域,特别是一种基于容器虚拟化的部署方法,包括以下步骤,步骤S101:获取需要部署的系统;步骤S102:确定系统所需的基础环境;步骤S103:容器虚拟化,通过虚拟化的容器进行镜像的运行。采用上述方法后,本发明基于容器的虚拟化技术,在物理设备层面上,能够通过容器隔离物理环境和虚拟环境的差异性,系统变动不会影响到物理环境。在部署过程中,设备仅需直接运行容器,不关心系统本身,减轻了运行环境的准备工作,从而达到一键部署的目的。

Description

一种基于容器虚拟化的部署方法
技术领域
本发明涉及系统环境部署技术领域,特别是一种基于容器虚拟化的部署方法。
背景技术
系统开发过程中,因为环境的可控性和受限性,对于系统的开发和测试部署可以做到较为简单清晰,无需太多人工干预。而生产环境因为设备环境的多样性和不可控性,如果要做到统一部署,就存在较大的难度,各种系统所需的环境不一样,如果单独为每个系统分配独立的设备,成本太大,如果共用设备,又需要确保各个系统之间不受干扰。
中国发明专利CN102088367A公开了一种虚拟化环境下快速部署方法,包括步骤:(1)在物理服务器中保留空闲的操作系统的镜像副本;(2)将虚拟服务器开通所具备的系统信息发送该管理服务器,后者选择初始化脚本并创建配置文件,管理服务器将其通过管理网络映射到节点服务器的设备空间中;(3)管理服务器创建虚拟机,将定制的操作系统的镜像副本虚拟化为虚拟服务器的磁盘,将节点服务器的设备模拟为虚拟服务器的光驱;(4)虚拟服务器启动后,在系统丁酯启动脚本中运行光驱上制定名称的启动脚本程序;(5)资源调度系统将用户名密码信息提交到前台用户自服务平台,用户将密文解密,实用获取的明文信息进行登录。
发明内容
本发明需要解决的技术问题提供一种系统环境的一致化部署方法。
为解决上述的技术问题,本发明的一种基于容器虚拟化的部署方法,包括以下步骤,
步骤S101:获取需要部署的系统;
步骤S102:确定系统所需的基础环境;
步骤S103:容器虚拟化,通过虚拟化的容器进行镜像的运行。
进一步的,步骤S103具体包括如下步骤,
步骤S31:打包系统到容器镜像中;
步骤S32:部署环境安装容器组件;
步骤S33:拉取系统容器镜像;
步骤S34:运行容器镜像。
采用上述方法后,本发明基于容器的虚拟化技术,在物理设备层面上,能够通过容器隔离物理环境和虚拟环境的差异性,系统变动不会影响到物理环境。在部署过程中,设备仅需直接运行容器,不关心系统本身,减轻了运行环境的准备工作,从而达到一键部署的目的。
附图说明
下面将结合附图和具体实施方式对本作进一步详细的说明。
图1为本发明一种基于容器虚拟化的部署方法的流程图。
具体实施方式
如图1所示,本发明一种基于容器虚拟化的部署方法,包括以下步骤,
步骤S101:获取需要部署的系统。
步骤S102:确定系统所需的基础环境。
步骤S103:容器虚拟化,通过虚拟化的容器进行镜像的运行。
其中,步骤S103具体包括如下步骤,
步骤S31:打包系统到容器镜像中。
步骤S32:部署环境安装容器组件;设备作为容器的宿主机,需要安装相关的基础组件,使得宿主机能够实现基于容器的虚拟机。在部署系统时,系统不会直接部署到设备中,而是统一打包成容器,设备通过运行该容器,来达到运行系统的目的,容器与容器之间的软件环境相互隔离,从而实现了系统间的环境隔离。在对系统的资源使用上做限制时,通过对容器的资源使用进行限制,比如CPU、内存、网络等,从而达到对系统的资源使用进行限制的目的。容器作为一种轻量的虚拟化技术,比传统的虚拟机技术轻量,在创建和运行时开销更小,在性能上也有了较大的提升,既能够拥有虚拟机的环境隔离性,又能够减少部署的工作量。
步骤S33:拉取系统容器镜像。
步骤S34:运行容器镜像。
本发明通过采用基于容器的虚拟化技术,对于系统而言,能够屏蔽设备环境的干扰,降低系统部署的复杂度和工作量;对于设备而言,能够极大的提升设备的使用率,降低设备成本。
对于原有基于物理设备的部署方案,一个是设备利用率不高,造成浪费,另一个是部署工作量大,需要根据系统要求对物理机环境进行针对性的准备工作,浪费人力,也无法做到通用性,在系统需求变动时,还需要对设备本身进行调整,费时费力。
对于原有的基于虚拟机的部署方案,尽管其提供了物理设备的使用率,能够在一台物理设备上运行多台虚拟机,但是依然存在着部署环境的问题,无法方便快捷的进行系统部署。
本发明提出的基于容器的虚拟化技术,在物理设备层面上,能够通过容器隔离物理环境和虚拟环境的差异性,系统变动不会影响到物理环境。在部署过程中,设备仅需直接运行容器,不关心系统本身,减轻了运行环境的准备工作,从而达到一键部署的目的。
虽然以上描述了本发明的具体实施方式,但是本领域熟练技术人员应当理解,这些仅是举例说明,可以对本实施方式作出多种变更或修改,而不背离发明的原理和实质,本发明的保护范围仅由所附权利要求书限定。

Claims (2)

1.一种基于容器虚拟化的部署方法,其特征在于,包括以下步骤,
步骤S101:获取需要部署的系统;
步骤S102:确定系统所需的基础环境;
步骤S103:容器虚拟化,通过虚拟化的容器进行镜像的运行。
2.按照权利要求1所述的一种基于容器虚拟化的部署方法,其特征在于,步骤S103具体包括如下步骤,
步骤S31:打包系统到容器镜像中;
步骤S32:部署环境安装容器组件;
步骤S33:拉取系统容器镜像;
步骤S34:运行容器镜像。
CN201510995394.3A 2015-12-28 2015-12-28 一种基于容器虚拟化的部署方法 Pending CN105677442A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510995394.3A CN105677442A (zh) 2015-12-28 2015-12-28 一种基于容器虚拟化的部署方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510995394.3A CN105677442A (zh) 2015-12-28 2015-12-28 一种基于容器虚拟化的部署方法

Publications (1)

Publication Number Publication Date
CN105677442A true CN105677442A (zh) 2016-06-15

Family

ID=56189605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510995394.3A Pending CN105677442A (zh) 2015-12-28 2015-12-28 一种基于容器虚拟化的部署方法

Country Status (1)

Country Link
CN (1) CN105677442A (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502797A (zh) * 2016-10-28 2017-03-15 郑州云海信息技术有限公司 一种集群系统及集群系统的部署方法
CN106789339A (zh) * 2017-01-19 2017-05-31 北京仿真中心 一种基于轻量级虚拟化架构的分布式云仿真方法与系统
CN113079061A (zh) * 2021-03-24 2021-07-06 广东海聊科技有限公司 一种物联网性能测试方法及系统

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080034365A1 (en) * 2006-08-07 2008-02-07 Bea Systems, Inc. System and method for providing hardware virtualization in a virtual machine environment
CN102088367A (zh) * 2010-12-10 2011-06-08 北京世纪互联工程技术服务有限公司 虚拟化环境下快速部署方法
CN103793259A (zh) * 2013-09-30 2014-05-14 中国电子设备系统工程公司研究所 一种虚拟器件的生成和部署方法
CN104899068A (zh) * 2015-06-30 2015-09-09 北京奇虎科技有限公司 使用容器进行多进程启动的方法及装置
CN104951360A (zh) * 2015-06-30 2015-09-30 北京奇虎科技有限公司 基于Docker的配置管理方式及装置
CN105138403A (zh) * 2015-09-02 2015-12-09 浪潮集团有限公司 一种实现云主机多业务并行的方法
CN105187500A (zh) * 2015-08-07 2015-12-23 浪潮(北京)电子信息产业有限公司 一种基于容器的分布式存储系统部署方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080034365A1 (en) * 2006-08-07 2008-02-07 Bea Systems, Inc. System and method for providing hardware virtualization in a virtual machine environment
CN102088367A (zh) * 2010-12-10 2011-06-08 北京世纪互联工程技术服务有限公司 虚拟化环境下快速部署方法
CN103793259A (zh) * 2013-09-30 2014-05-14 中国电子设备系统工程公司研究所 一种虚拟器件的生成和部署方法
CN104899068A (zh) * 2015-06-30 2015-09-09 北京奇虎科技有限公司 使用容器进行多进程启动的方法及装置
CN104951360A (zh) * 2015-06-30 2015-09-30 北京奇虎科技有限公司 基于Docker的配置管理方式及装置
CN105187500A (zh) * 2015-08-07 2015-12-23 浪潮(北京)电子信息产业有限公司 一种基于容器的分布式存储系统部署方法
CN105138403A (zh) * 2015-09-02 2015-12-09 浪潮集团有限公司 一种实现云主机多业务并行的方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘凯: "《如何基于Docker快速搭建多节点Hadoop集群》", 《HTTP://CLOUD.51CTO.COM/ART/201505/477851.HTM》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502797A (zh) * 2016-10-28 2017-03-15 郑州云海信息技术有限公司 一种集群系统及集群系统的部署方法
CN106789339A (zh) * 2017-01-19 2017-05-31 北京仿真中心 一种基于轻量级虚拟化架构的分布式云仿真方法与系统
CN113079061A (zh) * 2021-03-24 2021-07-06 广东海聊科技有限公司 一种物联网性能测试方法及系统

Similar Documents

Publication Publication Date Title
US11405274B2 (en) Managing virtual network functions
US10761873B2 (en) Evaluating distributed application performance in a new environment
US10303450B2 (en) Systems and methods for a policy-driven orchestration of deployment of distributed applications
US7823023B2 (en) Test framework for testing an application
Liu et al. The research and implementation of cloud computing platform based on docker
CN106796508B (zh) 在云平台上的快速部署
CN107766050B (zh) 一种异构应用的部署方法以及装置
US10445121B2 (en) Building virtual machine disk images for different cloud configurations from a single generic virtual machine disk image
Kumar et al. Economically efficient virtualization over cloud using docker containers
CN102567075B (zh) 一种云计算环境中虚拟机上下文设置方法
CN103795759B (zh) 一种虚拟机镜像文件的调度方法和系统
US20090228629A1 (en) Migration Of Applications From Physical Machines to Virtual Machines
US20120198442A1 (en) Virtual Container
US10747585B2 (en) Methods and apparatus to perform data migration in a distributed environment
US10503486B2 (en) Methods and apparatus to reduce application deployments sizes
EP3188008B1 (en) Virtual machine migration method and device
Song et al. A load balancing scheme using federate migration based on virtual machines for cloud simulations
CN103885833A (zh) 一种资源管理方法和系统
CN103067501B (zh) PaaS平台的大数据处理方法
Kirschnick et al. Towards an architecture for deploying elastic services in the cloud
US20140067864A1 (en) File access for applications deployed in a cloud environment
US20220357997A1 (en) Methods and apparatus to improve cloud management
CN105677442A (zh) 一种基于容器虚拟化的部署方法
Rafiq et al. Intent-Based Slicing between Containers in SDN Overlay Network.
CN102609301B (zh) 给多个客户端快速部署软件的方法

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160615