# Import images


[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





`POST /images/load`

Load a set of images and tags into a repository.

For details on the format, see the [export image endpoint](/reference/api/engine/version/v1.57/operations/ImageGet/).


## 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 POST \
  --unix-socket "${DOCKER_SOCKET:-/var/run/docker.sock}" \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/x-tar' \
  --data-binary @request-body \
  'http://localhost/v1.57/images/load'
```


Prepare request-body using the selected media type and schema.


## Parameters

### quiet

Location: query. Required: no.

Suppress progress details during load.

```json
{
  "description": "Suppress progress details during load.",
  "in": "query",
  "name": "quiet",
  "pointer": "/paths/~1images~1load/post/parameters/0",
  "schema": {
    "default": false,
    "type": "boolean"
  }
}
```

### platform

Location: query. Required: no.

JSON encoded OCI platform(s) which will be used to select the
platform-specific image(s) to load if the image is
multi-platform. If not provided, the full multi-platform image
will be loaded.

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


```json
{
  "description": "JSON encoded OCI platform(s) which will be used to select the\nplatform-specific image(s) to load if the image is\nmulti-platform. If not provided, the full multi-platform image\nwill be loaded.\n\nExample: `{\"os\": \"linux\", \"architecture\": \"arm\", \"variant\": \"v5\"}`\n",
  "explode": true,
  "in": "query",
  "name": "platform",
  "pointer": "/paths/~1images~1load/post/parameters/1",
  "schema": {
    "items": {
      "type": "string"
    },
    "type": "array"
  },
  "style": "form"
}
```

## Request and responses

### Request  application/x-tar

Tar archive containing images


Schema:

```json
{
  "format": "binary",
  "type": "string"
}
```










### Response 200 application/json

no error











### Response 500 application/json

server error


Schema:

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









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


## Complete operation contract

```json
{
  "description": "Load a set of images and tags into a repository.\n\nFor details on the format, see the [export image endpoint](#operation/ImageGet).\n",
  "operationId": "ImageLoad",
  "parameters": [
    {
      "description": "Suppress progress details during load.",
      "in": "query",
      "name": "quiet",
      "schema": {
        "default": false,
        "type": "boolean"
      }
    },
    {
      "description": "JSON encoded OCI platform(s) which will be used to select the\nplatform-specific image(s) to load if the image is\nmulti-platform. If not provided, the full multi-platform image\nwill be loaded.\n\nExample: `{\"os\": \"linux\", \"architecture\": \"arm\", \"variant\": \"v5\"}`\n",
      "explode": true,
      "in": "query",
      "name": "platform",
      "schema": {
        "items": {
          "type": "string"
        },
        "type": "array"
      },
      "style": "form"
    }
  ],
  "requestBody": {
    "content": {
      "application/x-tar": {
        "schema": {
          "format": "binary",
          "type": "string"
        }
      }
    },
    "description": "Tar archive containing images",
    "x-codegen-request-body-name": "imagesTarball"
  },
  "responses": {
    "200": {
      "content": {
        "application/json": {}
      },
      "description": "no error"
    },
    "500": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "description": "server error"
    }
  },
  "summary": "Import images",
  "tags": [
    "Image"
  ]
}
```

## Referenced schemas

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




