# Inspect an image


[API catalog](/reference/api/) · [Docker Engine overview](/reference/api/engine/version/v1.57/) · [Product manual](https://docs.docker.com/engine/) · [OpenAPI specification](/reference/api/engine/version/v1.57.yaml)

API version: 1.57





`GET /images/{name}/json`

Return low-level information about an image.

## Connection and access

[API connection and authentication guidance](/reference/api/engine/version/v1.57/#connection)


Server: `/v1.57`

Effective security: alternatives are OR; schemes within an alternative are AND. An empty array declares no HTTP authentication requirement.

```json
null
```

## Example request

Replace placeholders and provide the required credentials or request body.

```console
curl \
  --request GET \
  --unix-socket "${DOCKER_SOCKET:-/var/run/docker.sock}" \
  --header 'Accept: application/json' \
  'http://localhost/v1.57/images/<NAME>/json'
```



## Parameters

### name

Location: path. Required: yes.

Image name or id

```json
{
  "description": "Image name or id",
  "in": "path",
  "name": "name",
  "pointer": "/paths/~1images~1{name}~1json/get/parameters/0",
  "required": true,
  "schema": {
    "type": "string"
  }
}
```

### manifests

Location: query. Required: no.

Include Manifests in the image summary.

The `manifests` and `platform` options are mutually exclusive, and
an error is produced if both are set.

```json
{
  "description": "Include Manifests in the image summary.\n\nThe `manifests` and `platform` options are mutually exclusive, and\nan error is produced if both are set.",
  "in": "query",
  "name": "manifests",
  "pointer": "/paths/~1images~1{name}~1json/get/parameters/1",
  "required": false,
  "schema": {
    "default": false,
    "type": "boolean"
  }
}
```

### platform

Location: query. Required: no.

JSON-encoded OCI platform to select the platform-variant.
If omitted, it defaults to any locally available platform,
prioritizing the daemon's host platform.

If the daemon provides a multi-platform image store, this selects
the platform-variant to show inspect. If the image is
a single-platform image, or if the multi-platform image does not
provide a variant matching the given platform, an error is returned.

The `platform` and `manifests` options are mutually exclusive, and
an error is produced if both are set.

Example: `{"os": "linux", "architecture": "arm", "variant": "v5"}`

```json
{
  "description": "JSON-encoded OCI platform to select the platform-variant.\nIf omitted, it defaults to any locally available platform,\nprioritizing the daemon's host platform.\n\nIf the daemon provides a multi-platform image store, this selects\nthe platform-variant to show inspect. If the image is\na single-platform image, or if the multi-platform image does not\nprovide a variant matching the given platform, an error is returned.\n\nThe `platform` and `manifests` options are mutually exclusive, and\nan error is produced if both are set.\n\nExample: `{\"os\": \"linux\", \"architecture\": \"arm\", \"variant\": \"v5\"}`",
  "in": "query",
  "name": "platform",
  "pointer": "/paths/~1images~1{name}~1json/get/parameters/2",
  "schema": {
    "type": "string"
  }
}
```

## Request and responses

### Response 200 application/json

No error


Schema:

```json
{
  "$ref": "#/components/schemas/ImageInspect"
}
```










### Response 404 application/json

No such image


Schema:

```json
{
  "$ref": "#/components/schemas/ErrorResponse"
}
```









Example:
```json
{
  "message": "No such image: someimage (tag: latest)"
}
```


### Response 500 application/json

Server error


Schema:

```json
{
  "$ref": "#/components/schemas/ErrorResponse"
}
```









Schema example:
```json
{
  "message": "Something went wrong."
}
```


## Complete operation contract

```json
{
  "description": "Return low-level information about an image.",
  "operationId": "ImageInspect",
  "parameters": [
    {
      "description": "Image name or id",
      "in": "path",
      "name": "name",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "description": "Include Manifests in the image summary.\n\nThe `manifests` and `platform` options are mutually exclusive, and\nan error is produced if both are set.",
      "in": "query",
      "name": "manifests",
      "required": false,
      "schema": {
        "default": false,
        "type": "boolean"
      }
    },
    {
      "description": "JSON-encoded OCI platform to select the platform-variant.\nIf omitted, it defaults to any locally available platform,\nprioritizing the daemon's host platform.\n\nIf the daemon provides a multi-platform image store, this selects\nthe platform-variant to show inspect. If the image is\na single-platform image, or if the multi-platform image does not\nprovide a variant matching the given platform, an error is returned.\n\nThe `platform` and `manifests` options are mutually exclusive, and\nan error is produced if both are set.\n\nExample: `{\"os\": \"linux\", \"architecture\": \"arm\", \"variant\": \"v5\"}`",
      "in": "query",
      "name": "platform",
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ImageInspect"
          }
        }
      },
      "description": "No error"
    },
    "404": {
      "content": {
        "application/json": {
          "example": {
            "message": "No such image: someimage (tag: latest)"
          },
          "schema": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "description": "No such image"
    },
    "500": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "description": "Server error"
    }
  },
  "summary": "Inspect an image",
  "tags": [
    "Image"
  ]
}
```

## Referenced schemas

- [#/components/schemas/ErrorResponse](/reference/api/engine/version/v1.57/schemas/ErrorResponse/)

- [#/components/schemas/ImageInspect](/reference/api/engine/version/v1.57/schemas/ImageInspect/)




