Skip to content

Commit ae780cb

Browse files
committed
Add some links in config.md
Signed-off-by: Lei Jitang <[email protected]>
1 parent 287772a commit ae780cb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

config.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ This specification uses the following terms:
1818
Using a layer-based or union filesystem such as AUFS, or by computing the diff from filesystem snapshots, the filesystem changeset can be used to present a series of image layers as if they were one cohesive filesystem.
1919
</dd>
2020
<dt>
21-
Image JSON
21+
<a name="image_json">Image JSON</a>
2222
</dt>
2323
<dd>
2424
Each image has an associated JSON structure which describes some basic information about the image such as date created, author, and the ID of its parent image as well as execution/runtime configuration like its entrypoint, default arguments, CPU/memory shares, networking, and volumes.
2525
The JSON structure also references a cryptographic hash of each layer used by the image, and provides history information for those layers.
26-
This JSON is considered to be immutable, because changing it would change the computed ImageID.
26+
This JSON is considered to be immutable, because changing it would change the computed <a href="#image_id">ImageID</a>.
2727
Changing it means creating a new derived image, instead of changing the existing image.
2828
</dd>
2929
<dt>
@@ -47,12 +47,12 @@ This specification uses the following terms:
4747
<code>ChainID(layerN) = SHA256hex(ChainID(layerN-1) + " " + DiffID(layerN))</code>.
4848
</dd>
4949
<dt>
50-
ImageID <a name="id_desc"></a>
50+
<a name="image_id">ImageID</a>
5151
</dt>
5252
<dd>
53-
Each image's ID is given by the SHA256 hash of its configuration JSON.
53+
Each image's ID is given by the SHA256 hash of its <a name="image_id">ImageID</a>.
5454
It is represented as a hexadecimal encoding of 256 bits, e.g., <code>sha256:a9561eb1b190625c9adb5a9513e72c4dedafc1cb2d4c5236c9a6957ec7dfd5a9</code>.
55-
Since the configuration JSON that gets hashed references hashes of each layer in the image, this formulation of the ImageID makes images content-addresable.
55+
Since the <a name="image_id">ImageID</a> that gets hashed references hashes of each layer in the image, this formulation of the ImageID makes images content-addresable.
5656
</dd>
5757
</dl>
5858

0 commit comments

Comments
 (0)