github.com/pdmccormick/importable-docker-buildx@v0.0.0-20240426161518-e47091289030/docs/reference/buildx_imagetools_inspect.md (about)

     1  # buildx imagetools inspect
     2  
     3  ```text
     4  docker buildx imagetools inspect [OPTIONS] NAME
     5  ```
     6  
     7  <!---MARKER_GEN_START-->
     8  Show details of an image in the registry
     9  
    10  ### Options
    11  
    12  | Name                    | Type     | Default         | Description                                   |
    13  |:------------------------|:---------|:----------------|:----------------------------------------------|
    14  | [`--builder`](#builder) | `string` |                 | Override the configured builder instance      |
    15  | [`--format`](#format)   | `string` | `{{.Manifest}}` | Format the output using the given Go template |
    16  | [`--raw`](#raw)         |          |                 | Show original, unformatted JSON manifest      |
    17  
    18  
    19  <!---MARKER_GEN_END-->
    20  
    21  ## Description
    22  
    23  Show details of an image in the registry.
    24  
    25  ```console
    26  $ docker buildx imagetools inspect alpine
    27  Name:      docker.io/library/alpine:latest
    28  MediaType: application/vnd.docker.distribution.manifest.list.v2+json
    29  Digest:    sha256:21a3deaa0d32a8057914f36584b5288d2e5ecc984380bc0118285c70fa8c9300
    30  
    31  Manifests:
    32    Name:      docker.io/library/alpine:latest@sha256:e7d88de73db3d3fd9b2d63aa7f447a10fd0220b7cbf39803c803f2af9ba256b3
    33    MediaType: application/vnd.docker.distribution.manifest.v2+json
    34    Platform:  linux/amd64
    35  
    36    Name:      docker.io/library/alpine:latest@sha256:e047bc2af17934d38c5a7fa9f46d443f1de3a7675546402592ef805cfa929f9d
    37    MediaType: application/vnd.docker.distribution.manifest.v2+json
    38    Platform:  linux/arm/v6
    39  
    40    Name:      docker.io/library/alpine:latest@sha256:8483ecd016885d8dba70426fda133c30466f661bb041490d525658f1aac73822
    41    MediaType: application/vnd.docker.distribution.manifest.v2+json
    42    Platform:  linux/arm/v7
    43  
    44    Name:      docker.io/library/alpine:latest@sha256:c74f1b1166784193ea6c8f9440263b9be6cae07dfe35e32a5df7a31358ac2060
    45    MediaType: application/vnd.docker.distribution.manifest.v2+json
    46    Platform:  linux/arm64/v8
    47  
    48    Name:      docker.io/library/alpine:latest@sha256:2689e157117d2da668ad4699549e55eba1ceb79cb7862368b30919f0488213f4
    49    MediaType: application/vnd.docker.distribution.manifest.v2+json
    50    Platform:  linux/386
    51  
    52    Name:      docker.io/library/alpine:latest@sha256:2042a492bcdd847a01cd7f119cd48caa180da696ed2aedd085001a78664407d6
    53    MediaType: application/vnd.docker.distribution.manifest.v2+json
    54    Platform:  linux/ppc64le
    55  
    56    Name:      docker.io/library/alpine:latest@sha256:49e322ab6690e73a4909f787bcbdb873631264ff4a108cddfd9f9c249ba1d58e
    57    MediaType: application/vnd.docker.distribution.manifest.v2+json
    58    Platform:  linux/s390x
    59  ```
    60  
    61  ## Examples
    62  
    63  ### <a name="builder"></a> Override the configured builder instance (--builder)
    64  
    65  Same as [`buildx --builder`](buildx.md#builder).
    66  
    67  ### <a name="format"></a> Format the output (--format)
    68  
    69  Format the output using the given Go template. Defaults to `{{.Manifest}}` if
    70  unset. Following fields are available:
    71  
    72  * `.Name`: provides the reference of the image
    73  * `.Manifest`: provides the manifest or manifest list
    74  * `.Image`: provides the image config
    75  
    76  #### `.Name`
    77  
    78  ```console
    79  $ docker buildx imagetools inspect alpine --format "{{.Name}}"
    80  Name: docker.io/library/alpine:latest
    81  ```
    82  
    83  #### `.Manifest`
    84  
    85  ```console
    86  $ docker buildx imagetools inspect crazymax/loop --format "{{.Manifest}}"
    87  Name:      docker.io/crazymax/loop:latest
    88  MediaType: application/vnd.docker.distribution.manifest.v2+json
    89  Digest:    sha256:08602e7340970e92bde5e0a2e887c1fde4d9ae753d1e05efb4c8ef3b609f97f1
    90  ```
    91  
    92  ```console
    93  $ docker buildx imagetools inspect moby/buildkit:master --format "{{.Manifest}}"
    94  Name:      docker.io/moby/buildkit:master
    95  MediaType: application/vnd.docker.distribution.manifest.list.v2+json
    96  Digest:    sha256:3183f7ce54d1efb44c34b84f428ae10aaf141e553c6b52a7ff44cc7083a05a66
    97  
    98  Manifests:
    99    Name:      docker.io/moby/buildkit:master@sha256:667d28c9fb33820ce686887a717a148e89fa77f9097f9352996bbcce99d352b1
   100    MediaType: application/vnd.docker.distribution.manifest.v2+json
   101    Platform:  linux/amd64
   102  
   103    Name:      docker.io/moby/buildkit:master@sha256:71789527b64ab3d7b3de01d364b449cd7f7a3da758218fbf73b9c9aae05a6775
   104    MediaType: application/vnd.docker.distribution.manifest.v2+json
   105    Platform:  linux/arm/v7
   106  
   107    Name:      docker.io/moby/buildkit:master@sha256:fb64667e1ce6ab0d05478f3a8402af07b27737598dcf9a510fb1d792b13a66be
   108    MediaType: application/vnd.docker.distribution.manifest.v2+json
   109    Platform:  linux/arm64
   110  
   111    Name:      docker.io/moby/buildkit:master@sha256:1c3ddf95a0788e23f72f25800c05abc4458946685e2b66788c3d978cde6da92b
   112    MediaType: application/vnd.docker.distribution.manifest.v2+json
   113    Platform:  linux/s390x
   114  
   115    Name:      docker.io/moby/buildkit:master@sha256:05bcde6d460a284e5bc88026cd070277e8380355de3126cbc8fe8a452708c6b1
   116    MediaType: application/vnd.docker.distribution.manifest.v2+json
   117    Platform:  linux/ppc64le
   118  
   119    Name:      docker.io/moby/buildkit:master@sha256:c04c57765304ab84f4f9807fff3e11605c3a60e16435c734b02c723680f6bd6e
   120    MediaType: application/vnd.docker.distribution.manifest.v2+json
   121    Platform:  linux/riscv64
   122  ```
   123  
   124  #### JSON output
   125  
   126  A `json` template function is also available if you want to render fields in
   127  JSON format:
   128  
   129  ```console
   130  $ docker buildx imagetools inspect crazymax/buildkit:attest --format "{{json .Manifest}}"
   131  ```
   132  
   133  ```json
   134  {
   135    "schemaVersion": 2,
   136    "mediaType": "application/vnd.oci.image.index.v1+json",
   137    "digest": "sha256:7007b387ccd52bd42a050f2e8020e56e64622c9269bf7bbe257b326fe99daf19",
   138    "size": 855,
   139    "manifests": [
   140      {
   141        "mediaType": "application/vnd.oci.image.manifest.v1+json",
   142        "digest": "sha256:fbd10fe50b4b174bb9ea273e2eb9827fa8bf5c88edd8635a93dc83e0d1aecb55",
   143        "size": 673,
   144        "platform": {
   145          "architecture": "amd64",
   146          "os": "linux"
   147        }
   148      },
   149      {
   150        "mediaType": "application/vnd.oci.image.manifest.v1+json",
   151        "digest": "sha256:a9de632c16998489fd63fbca42a03431df00639cfb2ecb8982bf9984b83c5b2b",
   152        "size": 839,
   153        "annotations": {
   154          "vnd.docker.reference.digest": "sha256:fbd10fe50b4b174bb9ea273e2eb9827fa8bf5c88edd8635a93dc83e0d1aecb55",
   155          "vnd.docker.reference.type": "attestation-manifest"
   156        },
   157        "platform": {
   158          "architecture": "unknown",
   159          "os": "unknown"
   160        }
   161      }
   162    ]
   163  }
   164  ```
   165  
   166  ```console
   167  $ docker buildx imagetools inspect crazymax/buildkit:attest --format "{{json .Image}}"
   168  ```
   169  
   170  ```json
   171  {
   172    "created": "2022-12-01T11:46:47.713777178Z",
   173    "architecture": "amd64",
   174    "os": "linux",
   175    "config": {
   176      "Env": [
   177        "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
   178      ],
   179      "Cmd": [
   180        "/bin/sh"
   181      ]
   182    },
   183    "rootfs": {
   184      "type": "layers",
   185      "diff_ids": [
   186        "sha256:ded7a220bb058e28ee3254fbba04ca90b679070424424761a53a043b93b612bf",
   187        "sha256:d85d09ab4b4e921666ccc2db8532e857bf3476b7588e52c9c17741d7af14204f"
   188      ]
   189    },
   190    "history": [
   191      {
   192        "created": "2022-11-22T22:19:28.870801855Z",
   193        "created_by": "/bin/sh -c #(nop) ADD file:587cae71969871d3c6456d844a8795df9b64b12c710c275295a1182b46f630e7 in / "
   194      },
   195      {
   196        "created": "2022-11-22T22:19:29.008562326Z",
   197        "created_by": "/bin/sh -c #(nop)  CMD [\"/bin/sh\"]",
   198        "empty_layer": true
   199      },
   200      {
   201        "created": "2022-12-01T11:46:47.713777178Z",
   202        "created_by": "RUN /bin/sh -c apk add curl # buildkit",
   203        "comment": "buildkit.dockerfile.v0"
   204      }
   205    ]
   206  }
   207  ```
   208  
   209  ```console
   210  $ docker buildx imagetools inspect moby/buildkit:master --format "{{json .Manifest}}"
   211  ```
   212  
   213  ```json
   214  {
   215    "schemaVersion": 2,
   216    "mediaType": "application/vnd.oci.image.index.v1+json",
   217    "digest": "sha256:d895e8fdcf5e2bb39acb5966f97fc4cd87a2d13d27c939c320025eb4aca5440c",
   218    "size": 4654,
   219    "manifests": [
   220      {
   221        "mediaType": "application/vnd.oci.image.manifest.v1+json",
   222        "digest": "sha256:ac9dd4fbec9e36b562f910618975a2936533f8e411a3fea2858aacc0ac972e1c",
   223        "size": 1054,
   224        "platform": {
   225          "architecture": "amd64",
   226          "os": "linux"
   227        }
   228      },
   229      {
   230        "mediaType": "application/vnd.oci.image.manifest.v1+json",
   231        "digest": "sha256:0f4dc6797db467372cbf52c7236816203654a839f64a6542c9135d1973c9d744",
   232        "size": 1054,
   233        "platform": {
   234          "architecture": "arm",
   235          "os": "linux",
   236          "variant": "v7"
   237        }
   238      },
   239      {
   240        "mediaType": "application/vnd.oci.image.manifest.v1+json",
   241        "digest": "sha256:d62bb533d95afe17c4a9caf1e7c57a3b0a7a67409ccfa7af947aeb0f670ffb87",
   242        "size": 1054,
   243        "platform": {
   244          "architecture": "arm64",
   245          "os": "linux"
   246        }
   247      },
   248      {
   249        "mediaType": "application/vnd.oci.image.manifest.v1+json",
   250        "digest": "sha256:b4944057e0c68203cdcc3dceff3b2df3c7d9e3dd801724fa977b01081da7771e",
   251        "size": 1054,
   252        "platform": {
   253          "architecture": "s390x",
   254          "os": "linux"
   255        }
   256      },
   257      {
   258        "mediaType": "application/vnd.oci.image.manifest.v1+json",
   259        "digest": "sha256:825702a51eb4234904fc9253d8b0bf0a584787ffd8fc3fd6fa374188233ce399",
   260        "size": 1054,
   261        "platform": {
   262          "architecture": "ppc64le",
   263          "os": "linux"
   264        }
   265      },
   266      {
   267        "mediaType": "application/vnd.oci.image.manifest.v1+json",
   268        "digest": "sha256:dfb27c6acc9b9f3a7c9d47366d137089565062f43c8063c9f5e408d34c87ee4a",
   269        "size": 1054,
   270        "platform": {
   271          "architecture": "riscv64",
   272          "os": "linux"
   273        }
   274      },
   275      {
   276        "mediaType": "application/vnd.oci.image.manifest.v1+json",
   277        "digest": "sha256:f2fe69bccc878e658caf21dfc99eaf726fb20d28f17398c1d66a90e62cc019f9",
   278        "size": 1113,
   279        "annotations": {
   280          "vnd.docker.reference.digest": "sha256:ac9dd4fbec9e36b562f910618975a2936533f8e411a3fea2858aacc0ac972e1c",
   281          "vnd.docker.reference.type": "attestation-manifest"
   282        },
   283        "platform": {
   284          "architecture": "unknown",
   285          "os": "unknown"
   286        }
   287      },
   288      {
   289        "mediaType": "application/vnd.oci.image.manifest.v1+json",
   290        "digest": "sha256:9e112f8d4e383186f36369fba7b454e246d2e9ca5def797f1b84ede265e9f3ca",
   291        "size": 1113,
   292        "annotations": {
   293          "vnd.docker.reference.digest": "sha256:0f4dc6797db467372cbf52c7236816203654a839f64a6542c9135d1973c9d744",
   294          "vnd.docker.reference.type": "attestation-manifest"
   295        },
   296        "platform": {
   297          "architecture": "unknown",
   298          "os": "unknown"
   299        }
   300      },
   301      {
   302        "mediaType": "application/vnd.oci.image.manifest.v1+json",
   303        "digest": "sha256:09d593587f8665269ec6753eaed7fbdb09968f71587dd53e06519502cbc16775",
   304        "size": 1113,
   305        "annotations": {
   306          "vnd.docker.reference.digest": "sha256:d62bb533d95afe17c4a9caf1e7c57a3b0a7a67409ccfa7af947aeb0f670ffb87",
   307          "vnd.docker.reference.type": "attestation-manifest"
   308        },
   309        "platform": {
   310          "architecture": "unknown",
   311          "os": "unknown"
   312        }
   313      },
   314      {
   315        "mediaType": "application/vnd.oci.image.manifest.v1+json",
   316        "digest": "sha256:985a3f4544dfb042db6a8703f5f76438667dd7958aba14cb04bebe3b4cbd9307",
   317        "size": 1113,
   318        "annotations": {
   319          "vnd.docker.reference.digest": "sha256:b4944057e0c68203cdcc3dceff3b2df3c7d9e3dd801724fa977b01081da7771e",
   320          "vnd.docker.reference.type": "attestation-manifest"
   321        },
   322        "platform": {
   323          "architecture": "unknown",
   324          "os": "unknown"
   325        }
   326      },
   327      {
   328        "mediaType": "application/vnd.oci.image.manifest.v1+json",
   329        "digest": "sha256:cfccb6afeede7dc29bf8abef4815d56f2723fa482ea63c9cd519cd991c379294",
   330        "size": 1113,
   331        "annotations": {
   332          "vnd.docker.reference.digest": "sha256:825702a51eb4234904fc9253d8b0bf0a584787ffd8fc3fd6fa374188233ce399",
   333          "vnd.docker.reference.type": "attestation-manifest"
   334        },
   335        "platform": {
   336          "architecture": "unknown",
   337          "os": "unknown"
   338        }
   339      },
   340      {
   341        "mediaType": "application/vnd.oci.image.manifest.v1+json",
   342        "digest": "sha256:2e93733432c6a14cb57db33928b3a17d7ca298b3babe24d9f56dca2754dbde3b",
   343        "size": 1113,
   344        "annotations": {
   345          "vnd.docker.reference.digest": "sha256:dfb27c6acc9b9f3a7c9d47366d137089565062f43c8063c9f5e408d34c87ee4a",
   346          "vnd.docker.reference.type": "attestation-manifest"
   347        },
   348        "platform": {
   349          "architecture": "unknown",
   350          "os": "unknown"
   351        }
   352      }
   353    ]
   354  }
   355  ```
   356  
   357  The following command provides [SLSA](https://github.com/moby/buildkit/blob/master/docs/attestations/slsa-provenance.md)
   358  JSON output:
   359  
   360  ```console
   361  $ docker buildx imagetools inspect crazymax/buildkit:attest --format "{{json .Provenance}}"
   362  ```
   363  
   364  ```json
   365  {
   366    "SLSA": {
   367      "builder": {
   368        "id": ""
   369      },
   370      "buildType": "https://mobyproject.org/buildkit@v1",
   371      "materials": [
   372        {
   373          "uri": "pkg:docker/docker/buildkit-syft-scanner@stable-1",
   374          "digest": {
   375            "sha256": "b45f1d207e16c3a3a5a10b254ad8ad358d01f7ea090d382b95c6b2ee2b3ef765"
   376          }
   377        },
   378        {
   379          "uri": "pkg:docker/alpine@latest?platform=linux%2Famd64",
   380          "digest": {
   381            "sha256": "8914eb54f968791faf6a8638949e480fef81e697984fba772b3976835194c6d4"
   382          }
   383        }
   384      ],
   385      "invocation": {
   386        "configSource": {},
   387        "parameters": {
   388          "frontend": "dockerfile.v0",
   389          "locals": [
   390            {
   391              "name": "context"
   392            },
   393            {
   394              "name": "dockerfile"
   395            }
   396          ]
   397        },
   398        "environment": {
   399          "platform": "linux/amd64"
   400        }
   401      },
   402      "metadata": {
   403        "buildInvocationID": "02tdha2xkbxvin87mz9drhag4",
   404        "buildStartedOn": "2022-12-01T11:50:07.264704131Z",
   405        "buildFinishedOn": "2022-12-01T11:50:08.243788739Z",
   406        "reproducible": false,
   407        "completeness": {
   408          "parameters": true,
   409          "environment": true,
   410          "materials": false
   411        },
   412        "https://mobyproject.org/buildkit@v1#metadata": {}
   413      }
   414    }
   415  }
   416  ```
   417  
   418  The following command provides [SBOM](https://github.com/moby/buildkit/blob/master/docs/attestations/sbom.md)
   419  JSON output:
   420  
   421  ```console
   422  $ docker buildx imagetools inspect crazymax/buildkit:attest --format "{{json .SBOM}}"
   423  ```
   424  
   425  ```json
   426  {
   427    "SPDX": {
   428      "SPDXID": "SPDXRef-DOCUMENT",
   429      "creationInfo": {
   430        "created": "2022-12-01T11:46:48.063400162Z",
   431        "creators": [
   432          "Tool: syft-v0.60.3",
   433          "Tool: buildkit-1ace2bb",
   434          "Organization: Anchore, Inc"
   435        ],
   436        "licenseListVersion": "3.18"
   437      },
   438      "dataLicense": "CC0-1.0",
   439      "documentNamespace": "https://anchore.com/syft/dir/run/src/core-0a4ccc6d-1a72-4c3a-a40e-3df1a2ffca94",
   440      "files": [...],
   441      "spdxVersion": "SPDX-2.2"
   442    }
   443  }
   444  ```
   445  
   446  ```console
   447  $ docker buildx imagetools inspect crazymax/buildkit:attest --format "{{json .}}"
   448  ```
   449  
   450  ```json
   451  {
   452    "name": "crazymax/buildkit:attest",
   453    "manifest": {
   454      "schemaVersion": 2,
   455      "mediaType": "application/vnd.oci.image.index.v1+json",
   456      "digest": "sha256:7007b387ccd52bd42a050f2e8020e56e64622c9269bf7bbe257b326fe99daf19",
   457      "size": 855,
   458      "manifests": [
   459        {
   460          "mediaType": "application/vnd.oci.image.manifest.v1+json",
   461          "digest": "sha256:fbd10fe50b4b174bb9ea273e2eb9827fa8bf5c88edd8635a93dc83e0d1aecb55",
   462          "size": 673,
   463          "platform": {
   464            "architecture": "amd64",
   465            "os": "linux"
   466          }
   467        },
   468        {
   469          "mediaType": "application/vnd.oci.image.manifest.v1+json",
   470          "digest": "sha256:a9de632c16998489fd63fbca42a03431df00639cfb2ecb8982bf9984b83c5b2b",
   471          "size": 839,
   472          "annotations": {
   473            "vnd.docker.reference.digest": "sha256:fbd10fe50b4b174bb9ea273e2eb9827fa8bf5c88edd8635a93dc83e0d1aecb55",
   474            "vnd.docker.reference.type": "attestation-manifest"
   475          },
   476          "platform": {
   477            "architecture": "unknown",
   478            "os": "unknown"
   479          }
   480        }
   481      ]
   482    },
   483    "image": {
   484      "created": "2022-12-01T11:46:47.713777178Z",
   485      "architecture": "amd64",
   486      "os": "linux",
   487      "config": {
   488        "Env": [
   489          "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
   490        ],
   491        "Cmd": [
   492          "/bin/sh"
   493        ]
   494      },
   495      "rootfs": {
   496        "type": "layers",
   497        "diff_ids": [
   498          "sha256:ded7a220bb058e28ee3254fbba04ca90b679070424424761a53a043b93b612bf",
   499          "sha256:d85d09ab4b4e921666ccc2db8532e857bf3476b7588e52c9c17741d7af14204f"
   500        ]
   501      },
   502      "history": [
   503        {
   504          "created": "2022-11-22T22:19:28.870801855Z",
   505          "created_by": "/bin/sh -c #(nop) ADD file:587cae71969871d3c6456d844a8795df9b64b12c710c275295a1182b46f630e7 in / "
   506        },
   507        {
   508          "created": "2022-11-22T22:19:29.008562326Z",
   509          "created_by": "/bin/sh -c #(nop)  CMD [\"/bin/sh\"]",
   510          "empty_layer": true
   511        },
   512        {
   513          "created": "2022-12-01T11:46:47.713777178Z",
   514          "created_by": "RUN /bin/sh -c apk add curl # buildkit",
   515          "comment": "buildkit.dockerfile.v0"
   516        }
   517      ]
   518    }
   519  }
   520  ```
   521  
   522  #### Multi-platform
   523  
   524  Multi-platform images are supported for `.Image`, `.SLSA` and `.SBOM` fields.
   525  If you want to pick up a specific platform, you can specify it using the `index`
   526  go template function:
   527  
   528  ```console
   529  $ docker buildx imagetools inspect --format '{{json (index .Image "linux/s390x")}}' moby/buildkit:master
   530  ```
   531  
   532  ```json
   533  {
   534    "created": "2022-11-30T17:42:26.414957336Z",
   535    "architecture": "s390x",
   536    "os": "linux",
   537    "config": {
   538      "Env": [
   539        "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
   540      ],
   541      "Entrypoint": [
   542        "buildkitd"
   543      ],
   544      "Volumes": {
   545        "/var/lib/buildkit": {}
   546      }
   547    },
   548    "rootfs": {
   549      "type": "layers",
   550      "diff_ids": [
   551        "sha256:41048e32d0684349141cf05f629c5fc3c5915d1f3426b66dbb8953a540e01e1e",
   552        "sha256:2651209b9208fff6c053bc3c17353cb07874e50f1a9bc96d6afd03aef63de76a",
   553        "sha256:88577322e65f094ce8ac27435880f1a8a9baadb569258026bb141770451bafcb",
   554        "sha256:de8f9a790e4ed10ff1f1f8ea923c9da4f97246a7e200add2dc6650eba3f10a20"
   555      ]
   556    },
   557    "history": [
   558      {
   559        "created": "2021-11-24T20:41:23.709681315Z",
   560        "created_by": "/bin/sh -c #(nop) ADD file:cd24c711a2ef431b3ff94f9a02bfc42f159bc60de1d0eceecafea4e8af02441d in / "
   561      },
   562      {
   563        "created": "2021-11-24T20:41:23.94211262Z",
   564        "created_by": "/bin/sh -c #(nop)  CMD [\"/bin/sh\"]",
   565        "empty_layer": true
   566      },
   567      {
   568        "created": "2022-01-26T18:15:21.449825391Z",
   569        "created_by": "RUN /bin/sh -c apk add --no-cache fuse3 git openssh pigz xz   \u0026\u0026 ln -s fusermount3 /usr/bin/fusermount # buildkit",
   570        "comment": "buildkit.dockerfile.v0"
   571      },
   572      {
   573        "created": "2022-08-25T00:39:25.652811078Z",
   574        "created_by": "COPY examples/buildctl-daemonless/buildctl-daemonless.sh /usr/bin/ # buildkit",
   575        "comment": "buildkit.dockerfile.v0"
   576      },
   577      {
   578        "created": "2022-11-30T17:42:26.414957336Z",
   579        "created_by": "VOLUME [/var/lib/buildkit]",
   580        "comment": "buildkit.dockerfile.v0",
   581        "empty_layer": true
   582      },
   583      {
   584        "created": "2022-11-30T17:42:26.414957336Z",
   585        "created_by": "COPY / /usr/bin/ # buildkit",
   586        "comment": "buildkit.dockerfile.v0"
   587      },
   588      {
   589        "created": "2022-11-30T17:42:26.414957336Z",
   590        "created_by": "ENTRYPOINT [\"buildkitd\"]",
   591        "comment": "buildkit.dockerfile.v0",
   592        "empty_layer": true
   593      }
   594    ]
   595  }
   596  ```
   597  
   598  ### <a name="raw"></a> Show original JSON manifest (--raw)
   599  
   600  Use the `--raw` option to print the raw JSON manifest.
   601  
   602  ```console
   603  $ docker buildx imagetools inspect --raw crazymax/loop
   604  ```
   605  
   606  ```json
   607  {
   608    "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
   609    "schemaVersion": 2,
   610    "config": {
   611      "mediaType": "application/vnd.docker.container.image.v1+json",
   612      "digest": "sha256:a98999183d2c7a8845f6d56496e51099ce6e4359ee7255504174b05430c4b78b",
   613      "size": 2762
   614    },
   615    "layers": [
   616      {
   617        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
   618        "digest": "sha256:8663204ce13b2961da55026a2034abb9e5afaaccf6a9cfb44ad71406dcd07c7b",
   619        "size": 2818370
   620      },
   621      {
   622        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
   623        "digest": "sha256:f0868a92f8e1e5018ed4e60eb845ed4ff0e2229897f4105e5a4735c1d6fd874f",
   624        "size": 1821402
   625      },
   626      {
   627        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
   628        "digest": "sha256:d010066dbdfcf7c12fca30cd4b567aa7218eb6762ab53169d043655b7a8d7f2e",
   629        "size": 404457
   630      }
   631    ]
   632  }
   633  ```
   634  
   635  ```console
   636  $ docker buildx imagetools inspect --raw moby/buildkit:master | jq
   637  ```
   638  
   639  ```json
   640  {
   641    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   642    "schemaVersion": 2,
   643    "manifests": [
   644      {
   645        "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
   646        "digest": "sha256:f9f41c85124686c2afe330a985066748a91d7a5d505777fe274df804ab5e077e",
   647        "size": 1158,
   648        "platform": {
   649          "architecture": "amd64",
   650          "os": "linux"
   651        }
   652      },
   653      {
   654        "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
   655        "digest": "sha256:82097c2be19c617aafb3c3e43c88548738d4b2bf3db5c36666283a918b390266",
   656        "size": 1158,
   657        "platform": {
   658          "architecture": "arm",
   659          "os": "linux",
   660          "variant": "v7"
   661        }
   662      },
   663      {
   664        "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
   665        "digest": "sha256:b6b91e6c823d7220ded7d3b688e571ba800b13d91bbc904c1d8053593e3ee42c",
   666        "size": 1158,
   667        "platform": {
   668          "architecture": "arm64",
   669          "os": "linux"
   670        }
   671      },
   672      {
   673        "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
   674        "digest": "sha256:797061bcc16778de048b96f769c018ec24da221088050bbe926ea3b8d51d77e8",
   675        "size": 1158,
   676        "platform": {
   677          "architecture": "s390x",
   678          "os": "linux"
   679        }
   680      },
   681      {
   682        "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
   683        "digest": "sha256:b93d3a84d18c4d0b8c279e77343d854d9b5177df7ea55cf468d461aa2523364e",
   684        "size": 1159,
   685        "platform": {
   686          "architecture": "ppc64le",
   687          "os": "linux"
   688        }
   689      },
   690      {
   691        "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
   692        "digest": "sha256:d5c950dd1b270d437c838187112a0cb44c9258248d7a3a8bcb42fae8f717dc01",
   693        "size": 1158,
   694        "platform": {
   695          "architecture": "riscv64",
   696          "os": "linux"
   697        }
   698      }
   699    ]
   700  }
   701  ```