mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Added multilayer example image.
This commit is contained in:
parent
a780b7c6b5
commit
5183399f50
5 changed files with 1145 additions and 844 deletions
|
@ -25,13 +25,13 @@ associate with Unix-like operating systems: ``/dev, /proc, /bin, /etc,
|
|||
and libraries required to run user applications (like bash, ls, and so
|
||||
forth).
|
||||
|
||||
While there can be important kernal differences between differnt Linux
|
||||
distributions, the contents and organization of the root file system
|
||||
are usually what make your software packages dependant on one
|
||||
While there can be important kernal differences between different
|
||||
Linux distributions, the contents and organization of the root file
|
||||
system are usually what make your software packages dependent on one
|
||||
distribution versus another. Docker can help solve this problem by
|
||||
running multiple distributions at the same time.
|
||||
|
||||
.. image:: images/docker-filesystems-busyboxrw.png
|
||||
.. image:: images/docker-filesystems-multiroot.png
|
||||
|
||||
Layers and Union Mounts
|
||||
=======================
|
||||
|
@ -45,7 +45,7 @@ it takes advantage of a `union mount
|
|||
system *over* the read-only file system. In fact there may be multiple
|
||||
read-only file systems stacked on top of each other.
|
||||
|
||||
.. image:: images/docker-filesystems-debianrw.png
|
||||
.. image:: images/docker-filesystems-multilayer.png
|
||||
|
||||
At first, the top layer has nothing in it, but any time a process
|
||||
creates a file, this happens in the top layer. And if something needs
|
||||
|
@ -60,11 +60,11 @@ a **union file system**.
|
|||
Image
|
||||
=====
|
||||
|
||||
In Docker terminology, the read-only layer is called the
|
||||
**image**. An image never changes. Because Docker uses a union file
|
||||
system, the applications think the whole file system is mounted
|
||||
read-write, because any file can be changed. But all the changes go to
|
||||
the top-most layer, and underneath, the image is unchanged. Since they
|
||||
In Docker terminology, a read-only layer is called an **image**. An
|
||||
image never changes. Because Docker uses a union file system, the
|
||||
applications think the whole file system is mounted read-write,
|
||||
because any file can be changed. But all the changes go to the
|
||||
top-most layer, and underneath, the image is unchanged. Since they
|
||||
don't change, images do not have state.
|
||||
|
||||
Each image may depend on one more image which forms the layer beneath
|
||||
|
@ -79,7 +79,7 @@ An image that has no parent is a **base image**.
|
|||
Container
|
||||
=========
|
||||
|
||||
Once you start a Docker container from an image, Docker fetches the
|
||||
Once you start a process in Docker from an image, Docker fetches the
|
||||
image and its parent, and repeats the process until it reaches the
|
||||
base image. Then the union file system adds a read-write layer on
|
||||
top. That read-write layer, plus the information about its parent and
|
BIN
docs/sources/terms/images/docker-filesystems-multilayer.png
Normal file
BIN
docs/sources/terms/images/docker-filesystems-multilayer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 113 KiB |
BIN
docs/sources/terms/images/docker-filesystems-multiroot.png
Normal file
BIN
docs/sources/terms/images/docker-filesystems-multiroot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
File diff suppressed because it is too large
Load diff
Before Width: | Height: | Size: 190 KiB After Width: | Height: | Size: 243 KiB |
|
@ -14,5 +14,5 @@ Contents:
|
|||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
terms
|
||||
fundamentals
|
||||
|
||||
|
|
Loading…
Reference in a new issue