image.rst 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. :title: Images
  2. :description: Definition of an image
  3. :keywords: containers, lxc, concepts, explanation, image, container
  4. .. _image_def:
  5. Image
  6. =====
  7. .. image:: images/docker-filesystems-debian.png
  8. In Docker terminology, a read-only :ref:`layer_def` is called an
  9. **image**. An image never changes.
  10. Since Docker uses a :ref:`ufs_def`, the processes think the whole file
  11. system is mounted read-write. But all the changes go to the top-most
  12. writeable layer, and underneath, the original file in the read-only
  13. image is unchanged. Since images don't change, images do not have state.
  14. .. image:: images/docker-filesystems-debianrw.png
  15. .. _parent_image_def:
  16. Parent Image
  17. ............
  18. .. image:: images/docker-filesystems-multilayer.png
  19. Each image may depend on one more image which forms the layer beneath
  20. it. We sometimes say that the lower image is the **parent** of the
  21. upper image.
  22. .. _base_image_def:
  23. Base Image
  24. ..........
  25. An image that has no parent is a **base image**.
  26. Image IDs
  27. .........
  28. All images are identified by a 64 hexadecimal digit string (internally a 256bit
  29. value). To simplify their use, a short ID of the first 12 characters can be used
  30. on the command line. There is a small possibility of short id collisions, so the
  31. docker server will always return the long ID.