Home > other >  Docker images and the container what relation
Docker images and the container what relation

Time:09-27

I have read some articles, there are still some doubt
Docker images'
A Docker image is A read - only the template. For example, an image could contain an Ubuntu operating system with Apache

And your web application installed. The Images are 2 create Docker containers. The Docker provides a simple way to

Build new images or update existing images, or you can download Docker images that other people have already

Created. The Docker images are the build component of Docker.
Docker Registries
Docker registries hold images. These are public or private stores from which you upload or download images. The

Public Docker registry is called Docker Hub. It provides a huge collection of existing images for use. These

Can be images you create yourself or you can use images that others have previously created. The Docker registries are

The distribution component of Docker.
Docker containers
Docker containers are similar to a directory. A Docker container doesn everything belong men for an application

To run. Each container is created from a Docker image. The Docker containers can be run, started, stopped, version, and

Does. Each container is an isolated and secure application platform. The Docker containers are on the run component of

Docker.
Images installed my app, but it is readonly, that I want to update the app do?
The container is equivalent to one of my app dependency, and the container it is created by image, these are what relation?
The overview are vague, hopes to help explain the warrior


the problem from the CSDN Docker communication technology group (303806405), by the moderator xinshubiao,

CodePudding user response:

B: you can use the docker commit command to generate a new image

M: the application of the Docker equivalent to give you a joke, you can plug into any of the server, like right now installed when the hard disk clip, set good to a plug, plug line,

A: that means I deployed to A production environment also need to install the docker this joke?
And every time I have new features online, I am to update the whole story, or a part of update joke?
What is the difference between this and I wrap up the app (I guess the difference is docker contains some rely on)?
Or is said from the beginning development, testing, deployment, bug fix, update online,,,, I believe that such an article must be helpful


the answer from the CSDN Docker communication technology group (303806405), by the webmaster xinshubiao finishing, due to the manual editing, the questioner and the respondent QQ number and nickname had no marked one by one, simply use the ABCD instead of asking questions or reply, on behalf of A questioner, here, first thanked the group students participating in the discussion,

CodePudding user response:

Beginners docker, feeling can understand and version control tool contrast:
The image corresponding to the repository
The container corresponding working copy
Commit the corresponding commit
May the author is according to the thinking of version control design.

CodePudding user response:

The image corresponding to the changeset or a version number may be even more accurate.

CodePudding user response:

Docker the container and the relationship between the image and the database in the database and instance, classes and relationship is the same as the instance, you may think that the image is only a IOS file, and the container is in according to the image created in memory to run a concrete instance,

CodePudding user response:

Image can be understood as a system Image, the Container is Image at runtime a state,
If with the virtual machine as a metaphor, disk file under Image is turned off, the Container is virtual during disk files, including memory data,
You can refer to this article: http://pdfwork.cn/blog/2015/docker/

CodePudding user response:

On the top floor, concise and clear answer,

CodePudding user response:

The Image is a general source is official resources system, stable or more mature resources
After the Container is to start the system runtime environment, including disk + + run other software environment configuration
They can transform each other between
May have a look this article
http://aotu.io/notes/2016/02/27/docker/

CodePudding user response:

Container is equivalent to one of my app dependency this sentence is wrong, the container is a process, the image is a mirror, one is the storage state is a running state,
Image of each layer is a read-only, only the top layer is writable, every change in the top layer to modify,

CodePudding user response:

The container from the LXC,

Images from the operating system.

  • Related