mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
a7b2c4804b
* Added User Guide section outlines. * Added User Guide to menu. * Moved HTTPS example to articles. * Replaced Hello World example with User Guide. * Moved use cases out of examples. * Updated Introduction to add User Guide. * Redirected migrated /use and /articles links. * Added Docker.io section * Added Dockerized section * Added Using Docker section * Added Docker Images section * Added Docker Links section * Added Docker Volumes section Docker-DCO-1.1-Signed-off-by: James Turnbull <james@lovedthanlost.net> (github: jamtur01)
40 lines
1.3 KiB
Markdown
40 lines
1.3 KiB
Markdown
page_title: Images
|
|
page_description: Definition of an image
|
|
page_keywords: containers, lxc, concepts, explanation, image, container
|
|
|
|
# Image
|
|
|
|
## Introduction
|
|
|
|
![](/terms/images/docker-filesystems-debian.png)
|
|
|
|
In Docker terminology, a read-only [*Layer*](/terms/layer/#layer-def) is
|
|
called an **image**. An image never changes.
|
|
|
|
Since Docker uses a [*Union File System*](/terms/layer/#ufs-def), the
|
|
processes think the whole file system is mounted read-write. But all the
|
|
changes go to the top-most writeable layer, and underneath, the original
|
|
file in the read-only image is unchanged. Since images don't change,
|
|
images do not have state.
|
|
|
|
![](/terms/images/docker-filesystems-debianrw.png)
|
|
|
|
## Parent Image
|
|
|
|
![](/terms/images/docker-filesystems-multilayer.png)
|
|
|
|
Each image may depend on one more image which forms the layer beneath
|
|
it. We sometimes say that the lower image is the **parent** of the upper
|
|
image.
|
|
|
|
## Base Image
|
|
|
|
An image that has no parent is a **base image**.
|
|
|
|
## Image IDs
|
|
|
|
All images are identified by a 64 hexadecimal digit string (internally a
|
|
256bit value). To simplify their use, a short ID of the first 12
|
|
characters can be used on the command line. There is a small possibility
|
|
of short id collisions, so the docker server will always return the long
|
|
ID.
|