Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Docker mirror image construction method and device

A construction method and mirroring technology, applied in the field of communication, can solve problems such as long-term

Pending Publication Date: 2020-01-17
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF4 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Docker images need frequent iterative updates to the version during use. A Docker image consists of multiple readable image layers. According to the layering principle of Docker images, the version in the Docker image is updated through the traditional Dockerfile layered construction method. When updating, Dockerfile will rebuild this layer and all layers below this layer when each layer of files changes, and most of the version files are in the last layer of Dockerfile, each build even a small File changes require a complete new layer to be rebuilt, which makes each update of the version in the Docker image take a very long time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Docker mirror image construction method and device
  • Docker mirror image construction method and device
  • Docker mirror image construction method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention.

[0068] In order to facilitate the understanding of the technical solution of the present application, the technical terms that may be involved in the following embodiments will be explained, as follows:

[0069] Docker container: Docker container is an open source application container engine that allows developers to package their applications and dependencies into a portable container, and then publish it to any popular Linux machine, and can also implement virtualization, Docker container Allows individual processes to run with a higher level of isolation than normal Unix processes. For example, the virtual OS that provides the running of game programs has ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a Docker mirror image construction method and device. The method comprises the following steps: when a Docker mirror image is constructed, firstly determininga base image, creating a temporary container through the basic mirror image; determining a target mirror image file required by the Docker mirror image to be created; and determining difference information between the target mirror image file and the mirror image file in the basic mirror image, writing the difference information into the temporary container, submitting the temporary container intowhich the difference information is written as a new layer of the basic mirror image file, and taking the basic mirror image file containing the new layer as a created Docker mirror image. Accordingto the scheme, when the Docker mirror image is created, only the difference information of the target mirror image file and the mirror image file in the basic mirror image needs to be updated into thenew layer of the basic mirror image; a Docker mirror image is constructed through an existing Docker file; compared with all layers under the changed layer, the new layer constructed by the scheme ismuch smaller in size, so that the bandwidth required for distribution is reduced, and the occupation of the storage space of a mirror image warehouse and a computing node is reduced.

Description

technical field [0001] The embodiment of the present invention relates to the field of communication technologies, and in particular to a method and device for building a Docker image. Background technique [0002] Docker is an open source application container engine that aims to provide an automated deployment solution for applications, allowing developers to package their applications and dependencies into a portable container, which is a lightweight virtual machine, and then Publish to any popular Linux machine to realize automatic installation, deployment and upgrade of applications, which is very convenient. Moreover, Docker can virtualize multiple containers, and each container is isolated from each other without an interface, which can separate each other's production environment and development environment without affecting each other. [0003] Existing video transcoding services usually use container technology to submit and execute distributed tasks, and rely on ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/455G06F8/61
CPCG06F8/63G06F9/45558G06F2009/45562
Inventor 闫璟
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products