{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker/pulls/comments/61312912","id":61312912,"diff_hunk":"@@ -0,0 +1,632 @@\n+# Docker Image Specification v1.1.0\n+\n+An *Image* is an ordered collection of root filesystem changes and the\n+corresponding execution parameters for use within a container runtime. This\n+specification outlines the format of these filesystem changes and corresponding\n+parameters and describes how to create and use them for use with a container\n+runtime and execution tool.\n+\n+This version of the image specification was adopted starting in Docker 1.10.\n+\n+## Terminology\n+\n+This specification uses the following terms:\n+\n+<dl>\n+    <dt>\n+        Layer\n+    </dt>\n+    <dd>\n+        Images are composed of <i>layers</i>. Each layer is a set of filesystem\n+        changes. Layers do not have configuration metadata such as environment\n+        variables or default arguments - these are properties of the image as a\n+        whole rather than any particular layer.\n+    </dd>\n+    <dt>\n+        Image JSON\n+    </dt>\n+    <dd>\n+        Each image has an associated JSON structure which describes some\n+        basic information about the image such as date created, author, and the\n+        ID of its parent image as well as execution/runtime configuration like\n+        its entry point, default arguments, CPU/memory shares, networking, and\n+        volumes. The JSON structure also references a cryptographic hash of\n+        each layer used by the image, and provides history information for\n+        those layers. This JSON is considered to be immutable, because changing\n+        it would change the computed image ID. Changing it means creating a new\n+        derived image, instead of changing the existing image.\n+    </dd>\n+    <dt>\n+        Image Filesystem Changeset\n+    </dt>\n+    <dd>\n+        Each layer has an archive of the files which have been added, changed,\n+        or deleted relative to its parent layer. Using a layer-based or union\n+        filesystem such as AUFS, or by computing the diff from filesystem\n+        snapshots, the filesystem changeset can be used to present a series of\n+        image layers as if they were one cohesive filesystem.\n+    </dd>\n+    <dt>\n+        Layer DiffID\n+    </dt>\n+    <dd>\n+        Layers are referenced by cryptographic hashes of their serialized\n+        representation. This is a SHA256 digest over the tar archive used to\n+        transport the layer, represented as a hexadecimal encoding of 256 bits, e.g.,\n+        <code>sha256:a9561eb1b190625c9adb5a9513e72c4dedafc1cb2d4c5236c9a6957ec7dfd5a9</code>.\n+        Layers must be packed and unpacked reproducibly to avoid changing the\n+        layer ID, for example by using tar-split to save the tar headers. Note\n+        that the digest used as the layer ID is taken over an uncompressed\n+        version of the tar.\n+    </dd>\n+    <dt>\n+        Layer ChainID\n+    </dt>\n+    <dd>\n+        For convenience, it is sometimes useful to refer to a stack of layers\n+        with a single identifier. This is called a <code>ChainID</code>. For a\n+        single layer (or the layer at the bottom of a stack), the\n+        <code>ChainID</code> is equal to the layer's <code>DiffID</code>.\n+        Otherwise the <code>ChainID</code> is given by the formula:\n+        <code>ChainID(layerN) = SHA256hex(ChainID(layerN-1) + \" \" + DiffID(layerN))</code>.\n+    </dd>\n+    <dt>\n+        Image ID <a name=\"id_desc\"></a>\n+    </dt>\n+    <dd>\n+        Each image's ID is given by the SHA256 hash of its configuration JSON. It is \n+        represented as a hexadecimal encoding of 256 bits, e.g.,\n+        <code>sha256:a9561eb1b190625c9adb5a9513e72c4dedafc1cb2d4c5236c9a6957ec7dfd5a9</code>.\n+        Since the configuration JSON that gets hashed references hashes of each\n+        layer in the image, this formulation of the image ID makes images\n+        content-addresable.\n+    </dd>\n+    <dt>\n+        Tag\n+    </dt>\n+    <dd>\n+        A tag serves to map a descriptive, user-given name to any single image\n+        ID. Tag values are limited to the set of characters\n+        <code>[a-zA-Z_0-9]</code>.\n+    </dd>\n+    <dt>\n+        Repository\n+    </dt>\n+    <dd>\n+        A collection of tags grouped under a common prefix (the name component\n+        before <code>:</code>). For example, in an image tagged with the name\n+        <code>my-app:3.1.4</code>, <code>my-app</code> is the <i>Repository</i>\n+        component of the name. A repository name is made up of slash-separated\n+        name components, optionally prefixed by a DNS hostname. The hostname\n+        must follow comply with standard DNS rules, but may not contain\n+        <code>_</code> characters. If a hostname is present, it may optionally\n+        be followed by a port number in the format <code>:8080</code>.\n+        Name components may contain lowercase characters, digits, and\n+        separators. A separator is defined as a period, one or two underscores,\n+        or one or more dashes. A name component may not start or end with\n+        a separator.\n+    </dd>\n+</dl>\n+\n+## Image JSON Description\n+\n+Here is an example image JSON file:\n+\n+```\n+{  \n+    \"created\": \"2015-10-31T22:22:56.015925234Z\",\n+    \"author\": \"Alyssa P. Hacker &ltalyspdev@example.com&gt\",\n+    \"architecture\": \"amd64\",\n+    \"os\": \"linux\",\n+    \"config\": {\n+        \"User\": \"alice\",\n+        \"Memory\": 2048,\n+        \"MemorySwap\": 4096,\n+        \"CpuShares\": 8,\n+        \"ExposedPorts\": {  \n+            \"8080/tcp\": {}\n+        },\n+        \"Env\": [  \n+            \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\n+            \"FOO=docker_is_a_really\",\n+            \"BAR=great_tool_you_know\"\n+        ],\n+        \"Entrypoint\": [\n+            \"/bin/my-app-binary\"\n+        ],\n+        \"Cmd\": [\n+            \"--foreground\",\n+            \"--config\",\n+            \"/etc/my-app.d/default.cfg\"\n+        ],\n+        \"Volumes\": {\n+            \"/var/job-result-data\": {},\n+            \"/var/log/my-app-logs\": {},\n+        },\n+        \"WorkingDir\": \"/home/alice\",\n+    },\n+    \"rootfs\": {\n+      \"diff_ids\": [\n+        \"sha256:c6f988f4874bb0add23a778f753c65efe992244e148a1d2ec2a8b664fb66bbd1\",\n+        \"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef\"\n+      ],\n+      \"type\": \"layers\"\n+    },\n+    \"history\": [\n+      {\n+        \"created\": \"2015-10-31T22:22:54.690851953Z\",\n+        \"created_by\": \"/bin/sh -c #(nop) ADD file:a3bc1e842b69636f9df5256c49c5374fb4eef1e281fe3f282c65fb853ee171c5 in /\"\n+      },\n+      {\n+        \"created\": \"2015-10-31T22:22:55.613815829Z\",\n+        \"created_by\": \"/bin/sh -c #(nop) CMD [\\\"sh\\\"]\",\n+        \"empty_layer\": true\n+      }\n+    ]\n+}\n+```\n+\n+Note that image JSON files produced by Docker don't contain formatting\n+whitespace. It has been added to this example for clarity.\n+\n+### Image JSON Field Descriptions\n+\n+<dl>\n+    <dt>\n+        created <code>string</code>\n+    </dt>\n+    <dd>\n+        ISO-8601 formatted combined date and time at which the image was\n+        created.\n+    </dd>\n+    <dt>\n+        author <code>string</code>\n+    </dt>\n+    <dd>\n+        Gives the name and/or email address of the person or entity which\n+        created and is responsible for maintaining the image.\n+    </dd>\n+    <dt>\n+        architecture <code>string</code>\n+    </dt>\n+    <dd>\n+        The CPU architecture which the binaries in this image are built to run\n+        on. Possible values include:\n+        <ul>\n+            <li>386</li>\n+            <li>amd64</li>\n+            <li>arm</li>\n+        </ul>\n+        More values may be supported in the future and any of these may or may\n+        not be supported by a given container runtime implementation.\n+    </dd>\n+    <dt>\n+        os <code>string</code>\n+    </dt>\n+    <dd>\n+        The name of the operating system which the image is built to run on.\n+        Possible values include:\n+        <ul>\n+            <li>darwin</li>\n+            <li>freebsd</li>\n+            <li>linux</li>\n+        </ul>\n+        More values may be supported in the future and any of these may or may\n+        not be supported by a given container runtime implementation.\n+    </dd>\n+    <dt>\n+        config <code>struct</code>\n+    </dt>\n+    <dd>\n+        The execution parameters which should be used as a base when running a\n+        container using the image. This field can be <code>null</code>, in\n+        which case any execution parameters should be specified at creation of\n+        the container.\n+\n+        <h4>Container RunConfig Field Descriptions</h4>\n+\n+        <dl>\n+            <dt>\n+                User <code>string</code>\n+            </dt>\n+            <dd>\n+                <p>The username or UID which the process in the container should\n+                run as. This acts as a default value to use when the value is\n+                not specified when creating a container.</p>\n+\n+                <p>All of the following are valid:</p>\n+\n+                <ul>\n+                    <li><code>user</code></li>\n+                    <li><code>uid</code></li>\n+                    <li><code>user:group</code></li>\n+                    <li><code>uid:gid</code></li>\n+                    <li><code>uid:group</code></li>\n+                    <li><code>user:gid</code></li>\n+                </ul>\n+\n+                <p>If <code>group</code>/<code>gid</code> is not specified, the\n+                default group and supplementary groups of the given\n+                <code>user</code>/<code>uid</code> in <code>/etc/passwd</code>\n+                from the container are applied.</p>\n+            </dd>\n+            <dt>\n+                Memory <code>integer</code>\n+            </dt>\n+            <dd>\n+                Memory limit (in bytes). This acts as a default value to use\n+                when the value is not specified when creating a container.\n+            </dd>\n+            <dt>\n+                MemorySwap <code>integer</code>\n+            </dt>\n+            <dd>\n+                Total memory usage (memory + swap); set to <code>-1</code> to\n+                disable swap. This acts as a default value to use when the\n+                value is not specified when creating a container.\n+            </dd>\n+            <dt>\n+                CpuShares <code>integer</code>\n+            </dt>\n+            <dd>\n+                CPU shares (relative weight vs. other containers). This acts as\n+                a default value to use when the value is not specified when\n+                creating a container.\n+            </dd>\n+            <dt>\n+                ExposedPorts <code>struct</code>\n+            </dt>\n+            <dd>\n+                A set of ports to expose from a container running this image.\n+                This JSON structure value is unusual because it is a direct\n+                JSON serialization of the Go type\n+                <code>map[string]struct{}</code> and is represented in JSON as\n+                an object mapping its keys to an empty object. Here is an\n+                example:\n+\n+<pre>{\n+    \"8080\": {},\n+    \"53/udp\": {},\n+    \"2356/tcp\": {}\n+}</pre>\n+\n+                Its keys can be in the format of:\n+                <ul>\n+                    <li>\n+                        <code>\"port/tcp\"</code>\n+                    </li>\n+                    <li>\n+                        <code>\"port/udp\"</code>\n+                    </li>\n+                    <li>\n+                        <code>\"port\"</code>\n+                    </li>\n+                </ul>\n+                with the default protocol being <code>\"tcp\"</code> if not\n+                specified.\n+\n+                These values act as defaults and are merged with any specified\n+                when creating a container.\n+            </dd>\n+            <dt>\n+                Env <code>array of strings</code>\n+            </dt>\n+            <dd>\n+                Entries are in the format of <code>VARNAME=\"var value\"</code>.\n+                These values act as defaults and are merged with any specified\n+                when creating a container.\n+            </dd>\n+            <dt>\n+                Entrypoint <code>array of strings</code>\n+            </dt>\n+            <dd>\n+                A list of arguments to use as the command to execute when the\n+                container starts. This value acts as a  default and is replaced\n+                by an entrypoint specified when creating a container.\n+            </dd>\n+            <dt>\n+                Cmd <code>array of strings</code>\n+            </dt>\n+            <dd>\n+                Default arguments to the entry point of the container. These\n+                values act as defaults and are replaced with any specified when\n+                creating a container. If an <code>Entrypoint</code> value is\n+                not specified, then the first entry of the <code>Cmd</code>\n+                array should be interpreted as the executable to run.\n+            </dd>\n+            <dt>\n+                Volumes <code>struct</code>\n+            </dt>\n+            <dd>\n+                A set of directories which should be created as data volumes in\n+                a container running this image. This JSON structure value is\n+                unusual because it is a direct JSON serialization of the Go\n+                type <code>map[string]struct{}</code> and is represented in\n+                JSON as an object mapping its keys to an empty object. Here is\n+                an example:\n+<pre>{\n+    \"/var/my-app-data/\": {},\n+    \"/etc/some-config.d/\": {},\n+}</pre>\n+            </dd>\n+            <dt>\n+                WorkingDir <code>string</code>\n+            </dt>\n+            <dd>\n+                Sets the current working directory of the entry point process\n+                in the container. This value acts as a default and is replaced\n+                by a working directory specified when creating a container.\n+            </dd>\n+        </dl>\n+    </dd>\n+    <dt>\n+        rootfs <code>struct</code>\n+    </dt>\n+    <dd>\n+        The rootfs key references the layer content addresses used by the\n+        image. This makes the image config hash depend on the filesystem hash.\n+        rootfs has two subkeys:\n+\n+        <ul>\n+          <li>\n+            <code>type</code> is usually set to <code>layers</code>. There is\n+            also a Windows-specific value <code>layers+base</code> that allows\n+            a base layer to specified in a field of <code>rootfs</code> called\n+            <code>base_layer</code>.\n+          </li>\n+          <li>\n+            <code>diff_ids</code> is an array of layer content hashes (<code>DiffIDs</code>), in order from bottom-most to top-most.\n+          </li>\n+        </ul>\n+\n+\n+        Here is an example rootfs section:\n+\n+<pre>\"rootfs\": {\n+  \"diff_ids\": [\n+    \"sha256:c6f988f4874bb0add23a778f753c65efe992244e148a1d2ec2a8b664fb66bbd1\",\n+    \"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef\",\n+    \"sha256:13f53e08df5a220ab6d13c58b2bf83a59cbdc2e04d0a3f041ddf4b0ba4112d49\"\n+  ],\n+  \"type\": \"layers\"\n+}</pre>\n+    </dd>\n+    <dt>\n+        history <code>struct</code>\n+    </dt>\n+    <dd>\n+        <code>history</code> is an array of objects describing the history of\n+        each layer. The array is ordered from bottom-most layer to top-most\n+        layer. The object has the following fields.\n+\n+        <ul>\n+          <li>\n+            <code>created</code>: Creation time, expressed as a ISO-8601 formatted\n+            combined date and time\n+          </li>\n+          <li>\n+            <code>author</code>: The author of the build point\n+          </li>\n+          <li>\n+            <code>created_by</code>: The command which created the layer\n+          </li>\n+          <li>\n+            <code>comment</code>: A custom message set when creating the layer\n+          </li>\n+          <li>\n+            <code>empty_layer</code>: This field is used to mark if the history\n+            item created a filesystem diff. It is set to true if this history\n+            item doesn't correspond to an actual layer in the rootfs section\n+            (for example, a command like ENV which results in no change to the\n+            filesystem).\n+          </li>\n+        </ul>\n+\n+Here is an example history section:\n+\n+<pre>\"history\": [\n+  {\n+    \"created\": \"2015-10-31T22:22:54.690851953Z\",\n+    \"created_by\": \"/bin/sh -c #(nop) ADD file:a3bc1e842b69636f9df5256c49c5374fb4eef1e281fe3f282c65fb853ee171c5 in /\"\n+  },\n+  {\n+    \"created\": \"2015-10-31T22:22:55.613815829Z\",\n+    \"created_by\": \"/bin/sh -c #(nop) CMD [\\\"sh\\\"]\",\n+    \"empty_layer\": true\n+  }\n+]</pre>\n+    </dd>\n+</dl>\n+\n+Any extra fields in the Image JSON struct are considered implementation\n+specific and should be ignored by any implementations which are unable to\n+interpret them.\n+\n+## Creating an Image Filesystem Changeset\n+\n+An example of creating an Image Filesystem Changeset follows.\n+\n+An image root filesystem is first created as an empty directory. Here is the\n+initial empty directory structure for the a changeset using the\n+randomly-generated directory name `c3167915dc9d` ([actual layer DiffIDs are\n+generated based on the content](#id_desc)).\n+\n+```\n+c3167915dc9d/\n+```\n+\n+Files and directories are then created:\n+\n+```\n+c3167915dc9d/\n+    etc/\n+        my-app-config\n+    bin/\n+        my-app-binary\n+        my-app-tools\n+```\n+\n+The `c3167915dc9d` directory is then committed as a plain Tar archive with\n+entries for the following files:\n+\n+```\n+etc/my-app-config\n+bin/my-app-binary\n+bin/my-app-tools\n+```\n+\n+To make changes to the filesystem of this container image, create a new\n+directory, such as `f60c56784b83`, and initialize it with a snapshot of the\n+parent image's root filesystem, so that the directory is identical to that\n+of `c3167915dc9d`. NOTE: a copy-on-write or union filesystem can make this very\n+efficient:\n+\n+```\n+f60c56784b83/\n+    etc/\n+        my-app-config\n+    bin/\n+        my-app-binary\n+        my-app-tools\n+```\n+\n+This example change is going add a configuration directory at `/etc/my-app.d`\n+which contains a default config file. There's also a change to the\n+`my-app-tools` binary to handle the config layout change. The `f60c56784b83`\n+directory then looks like this:\n+\n+```\n+f60c56784b83/\n+    etc/\n+        my-app.d/\n+            default.cfg\n+    bin/\n+        my-app-binary\n+        my-app-tools\n+```\n+\n+This reflects the removal of `/etc/my-app-config` and creation of a file and\n+directory at `/etc/my-app.d/default.cfg`. `/bin/my-app-tools` has also been\n+replaced with an updated version. Before committing this directory to a\n+changeset, because it has a parent image, it is first compared with the\n+directory tree of the parent snapshot, `f60c56784b83`, looking for files and\n+directories that have been added, modified, or removed. The following changeset\n+is found:\n+\n+```\n+Added:      /etc/my-app.d/default.cfg\n+Modified:   /bin/my-app-tools\n+Deleted:    /etc/my-app-config\n+```\n+\n+A Tar Archive is then created which contains *only* this changeset: The added\n+and modified files and directories in their entirety, and for each deleted item\n+an entry for an empty file at the same location but with the basename of the\n+deleted file or directory prefixed with `.wh.`. The filenames prefixed with\n+`.wh.` are known as \"whiteout\" files. NOTE: For this reason, it is not possible\n+to create an image root filesystem which contains a file or directory with a\n+name beginning with `.wh.`. The resulting Tar archive for `f60c56784b83` has\n+the following entries:\n+\n+```\n+/etc/my-app.d/default.cfg\n+/bin/my-app-tools\n+/etc/.wh.my-app-config\n+```\n+\n+Any given image is likely to be composed of several of these Image Filesystem\n+Changeset tar archives.\n+\n+## Combined Image JSON + Filesystem Changeset Format\n+\n+There is also a format for a single archive which contains complete information\n+about an image, including:\n+\n+ - repository names/tags\n+ - image configuration JSON file\n+ - all tar archives of each layer filesystem changesets\n+\n+For example, here's what the full archive of `library/busybox` is (displayed in\n+`tree` format):\n+\n+```\n+.\n+├── 47bcc53f74dc94b1920f0b34f6036096526296767650f223433fe65c35f149eb.json\n+├── 5f29f704785248ddb9d06b90a11b5ea36c534865e9035e4022bb2e71d4ecbb9a\n+│   ├── VERSION\n+│   ├── json\n+│   └── layer.tar\n+├── a65da33792c5187473faa80fa3e1b975acba06712852d1dea860692ccddf3198\n+│   ├── VERSION\n+│   ├── json\n+│   └── layer.tar\n+├── manifest.json\n+└── repositories\n+```\n+\n+There are one or more directories named with the ChainID for each layer in a\n+full image. Each of these directories contains 3 files:","path":"image/spec/v1.1.md","position":568,"original_position":568,"commit_id":"a07dd240ac7148093987380edc10222e63ba19e2","original_commit_id":"2801c4c22c04396ec912760a955752cd8955e841","user":{"login":"vbatts","id":67049,"avatar_url":"https://avatars.githubusercontent.com/u/67049?v=3","gravatar_id":"","url":"https://api.github.com/users/vbatts","html_url":"https://github.com/vbatts","followers_url":"https://api.github.com/users/vbatts/followers","following_url":"https://api.github.com/users/vbatts/following{/other_user}","gists_url":"https://api.github.com/users/vbatts/gists{/gist_id}","starred_url":"https://api.github.com/users/vbatts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbatts/subscriptions","organizations_url":"https://api.github.com/users/vbatts/orgs","repos_url":"https://api.github.com/users/vbatts/repos","events_url":"https://api.github.com/users/vbatts/events{/privacy}","received_events_url":"https://api.github.com/users/vbatts/received_events","type":"User","site_admin":false},"body":"understood\n\nOn Wed, Apr 27, 2016 at 2:26 PM Tõnis Tiigi <notifications@github.com>\nwrote:\n\n> In image/spec/v1.1.md\n> <https://github.com/docker/docker/pull/22264#discussion_r61310686>:\n>\n> > +.\n> > +├── 47bcc53f74dc94b1920f0b34f6036096526296767650f223433fe65c35f149eb.json\n> > +├── 5f29f704785248ddb9d06b90a11b5ea36c534865e9035e4022bb2e71d4ecbb9a\n> > +│   ├── VERSION\n> > +│   ├── json\n> > +│   └── layer.tar\n> > +├── a65da33792c5187473faa80fa3e1b975acba06712852d1dea860692ccddf3198\n> > +│   ├── VERSION\n> > +│   ├── json\n> > +│   └── layer.tar\n> > +├── manifest.json\n> > +└── repositories\n> > +```\n> > +\n> > +There are one or more directories named with the ChainID for each layer in a\n> > +full image. Each of these directories contains 3 files:\n>\n> I don't know. There is no problem with supporting both atm but we don't\n> want to promote the old one because we can't have ID stability with the old\n> version. id/json is the 1.0 image configuration with the parent chain and\n> we don't use this method any more since v1.10.\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/docker/docker/pull/22264/files/2801c4c22c04396ec912760a955752cd8955e841#r61310686>\n>\n","created_at":"2016-04-27T18:37:08Z","updated_at":"2016-04-27T18:37:08Z","html_url":"https://github.com/docker/docker/pull/22264#discussion_r61312912","pull_request_url":"https://api.github.com/repos/docker/docker/pulls/22264","_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/comments/61312912"},"html":{"href":"https://github.com/docker/docker/pull/22264#discussion_r61312912"},"pull_request":{"href":"https://api.github.com/repos/docker/docker/pulls/22264"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/22264","id":67569868,"html_url":"https://github.com/docker/docker/pull/22264","diff_url":"https://github.com/docker/docker/pull/22264.diff","patch_url":"https://github.com/docker/docker/pull/22264.patch","issue_url":"https://api.github.com/repos/docker/docker/issues/22264","number":22264,"state":"open","locked":false,"title":"Update image specification for content-addressability changes","user":{"login":"aaronlehmann","id":10601430,"avatar_url":"https://avatars.githubusercontent.com/u/10601430?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronlehmann","html_url":"https://github.com/aaronlehmann","followers_url":"https://api.github.com/users/aaronlehmann/followers","following_url":"https://api.github.com/users/aaronlehmann/following{/other_user}","gists_url":"https://api.github.com/users/aaronlehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronlehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronlehmann/subscriptions","organizations_url":"https://api.github.com/users/aaronlehmann/orgs","repos_url":"https://api.github.com/users/aaronlehmann/repos","events_url":"https://api.github.com/users/aaronlehmann/events{/privacy}","received_events_url":"https://api.github.com/users/aaronlehmann/received_events","type":"User","site_admin":false},"body":"The image spec in image/spec/v1.md is quite a bit out of date. Not only\r\nis it missing the changes that went into 1.10 for content\r\naddressability, but it has inaccuracies that date back further, such as\r\nmentioning storing tarsum in the image configuration.\r\n\r\nThis commit creates image/spec/v1.1.md which brings the specification up\r\nto date. It discusses content addressability, new fields in the image\r\nconfiguration, the repository/tag grammar, and the current mechanism for\r\nexporting an image.\r\n\r\nTo review this, I suggest diffing against `v1.md`.\r\n\r\ncc @stevvooe @tonistiigi @dmcgowan @vbatts ","created_at":"2016-04-22T20:40:36Z","updated_at":"2016-04-27T18:37:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40d8bf90ef3b3579b1573cdf7b924c8cdfe37e18","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/docker/pulls/22264/commits","review_comments_url":"https://api.github.com/repos/docker/docker/pulls/22264/comments","review_comment_url":"https://api.github.com/repos/docker/docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker/issues/22264/comments","statuses_url":"https://api.github.com/repos/docker/docker/statuses/a07dd240ac7148093987380edc10222e63ba19e2","head":{"label":"aaronlehmann:updated-image-spec","ref":"updated-image-spec","sha":"a07dd240ac7148093987380edc10222e63ba19e2","user":{"login":"aaronlehmann","id":10601430,"avatar_url":"https://avatars.githubusercontent.com/u/10601430?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronlehmann","html_url":"https://github.com/aaronlehmann","followers_url":"https://api.github.com/users/aaronlehmann/followers","following_url":"https://api.github.com/users/aaronlehmann/following{/other_user}","gists_url":"https://api.github.com/users/aaronlehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronlehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronlehmann/subscriptions","organizations_url":"https://api.github.com/users/aaronlehmann/orgs","repos_url":"https://api.github.com/users/aaronlehmann/repos","events_url":"https://api.github.com/users/aaronlehmann/events{/privacy}","received_events_url":"https://api.github.com/users/aaronlehmann/received_events","type":"User","site_admin":false},"repo":{"id":39463499,"name":"docker","full_name":"aaronlehmann/docker","owner":{"login":"aaronlehmann","id":10601430,"avatar_url":"https://avatars.githubusercontent.com/u/10601430?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronlehmann","html_url":"https://github.com/aaronlehmann","followers_url":"https://api.github.com/users/aaronlehmann/followers","following_url":"https://api.github.com/users/aaronlehmann/following{/other_user}","gists_url":"https://api.github.com/users/aaronlehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronlehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronlehmann/subscriptions","organizations_url":"https://api.github.com/users/aaronlehmann/orgs","repos_url":"https://api.github.com/users/aaronlehmann/repos","events_url":"https://api.github.com/users/aaronlehmann/events{/privacy}","received_events_url":"https://api.github.com/users/aaronlehmann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aaronlehmann/docker","description":"Docker - the open-source application container engine","fork":true,"url":"https://api.github.com/repos/aaronlehmann/docker","forks_url":"https://api.github.com/repos/aaronlehmann/docker/forks","keys_url":"https://api.github.com/repos/aaronlehmann/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aaronlehmann/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aaronlehmann/docker/teams","hooks_url":"https://api.github.com/repos/aaronlehmann/docker/hooks","issue_events_url":"https://api.github.com/repos/aaronlehmann/docker/issues/events{/number}","events_url":"https://api.github.com/repos/aaronlehmann/docker/events","assignees_url":"https://api.github.com/repos/aaronlehmann/docker/assignees{/user}","branches_url":"https://api.github.com/repos/aaronlehmann/docker/branches{/branch}","tags_url":"https://api.github.com/repos/aaronlehmann/docker/tags","blobs_url":"https://api.github.com/repos/aaronlehmann/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aaronlehmann/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aaronlehmann/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/aaronlehmann/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aaronlehmann/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/aaronlehmann/docker/languages","stargazers_url":"https://api.github.com/repos/aaronlehmann/docker/stargazers","contributors_url":"https://api.github.com/repos/aaronlehmann/docker/contributors","subscribers_url":"https://api.github.com/repos/aaronlehmann/docker/subscribers","subscription_url":"https://api.github.com/repos/aaronlehmann/docker/subscription","commits_url":"https://api.github.com/repos/aaronlehmann/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/aaronlehmann/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/aaronlehmann/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/aaronlehmann/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/aaronlehmann/docker/contents/{+path}","compare_url":"https://api.github.com/repos/aaronlehmann/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aaronlehmann/docker/merges","archive_url":"https://api.github.com/repos/aaronlehmann/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aaronlehmann/docker/downloads","issues_url":"https://api.github.com/repos/aaronlehmann/docker/issues{/number}","pulls_url":"https://api.github.com/repos/aaronlehmann/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/aaronlehmann/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/aaronlehmann/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aaronlehmann/docker/labels{/name}","releases_url":"https://api.github.com/repos/aaronlehmann/docker/releases{/id}","deployments_url":"https://api.github.com/repos/aaronlehmann/docker/deployments","created_at":"2015-07-21T18:44:59Z","updated_at":"2016-01-14T00:46:21Z","pushed_at":"2016-04-27T18:09:54Z","git_url":"git://github.com/aaronlehmann/docker.git","ssh_url":"git@github.com:aaronlehmann/docker.git","clone_url":"https://github.com/aaronlehmann/docker.git","svn_url":"https://github.com/aaronlehmann/docker","homepage":"http://www.docker.com","size":85596,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"861815a3252b88a118a91a164246401fa24fa549","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":7691631,"name":"docker","full_name":"docker/docker","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/docker","description":"Docker - the open-source application container engine","fork":false,"url":"https://api.github.com/repos/docker/docker","forks_url":"https://api.github.com/repos/docker/docker/forks","keys_url":"https://api.github.com/repos/docker/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/docker/teams","hooks_url":"https://api.github.com/repos/docker/docker/hooks","issue_events_url":"https://api.github.com/repos/docker/docker/issues/events{/number}","events_url":"https://api.github.com/repos/docker/docker/events","assignees_url":"https://api.github.com/repos/docker/docker/assignees{/user}","branches_url":"https://api.github.com/repos/docker/docker/branches{/branch}","tags_url":"https://api.github.com/repos/docker/docker/tags","blobs_url":"https://api.github.com/repos/docker/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/docker/languages","stargazers_url":"https://api.github.com/repos/docker/docker/stargazers","contributors_url":"https://api.github.com/repos/docker/docker/contributors","subscribers_url":"https://api.github.com/repos/docker/docker/subscribers","subscription_url":"https://api.github.com/repos/docker/docker/subscription","commits_url":"https://api.github.com/repos/docker/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/docker/contents/{+path}","compare_url":"https://api.github.com/repos/docker/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/docker/merges","archive_url":"https://api.github.com/repos/docker/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/docker/downloads","issues_url":"https://api.github.com/repos/docker/docker/issues{/number}","pulls_url":"https://api.github.com/repos/docker/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/docker/labels{/name}","releases_url":"https://api.github.com/repos/docker/docker/releases{/id}","deployments_url":"https://api.github.com/repos/docker/docker/deployments","created_at":"2013-01-18T18:10:57Z","updated_at":"2016-04-27T17:32:24Z","pushed_at":"2016-04-27T18:15:53Z","git_url":"git://github.com/docker/docker.git","ssh_url":"git@github.com:docker/docker.git","clone_url":"https://github.com/docker/docker.git","svn_url":"https://github.com/docker/docker","homepage":"http://www.docker.com","size":189950,"stargazers_count":30810,"watchers_count":30810,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8743,"mirror_url":null,"open_issues_count":1536,"forks":8743,"open_issues":1536,"watchers":30810,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/22264"},"html":{"href":"https://github.com/docker/docker/pull/22264"},"issue":{"href":"https://api.github.com/repos/docker/docker/issues/22264"},"comments":{"href":"https://api.github.com/repos/docker/docker/issues/22264/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker/pulls/22264/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker/pulls/22264/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker/statuses/a07dd240ac7148093987380edc10222e63ba19e2"}}}}