# ImageConfig


[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





Schema constraints and annotations:

```json
{
  "description": "Configuration of the image. These fields are used as defaults\nwhen starting a container from the image.\n",
  "properties": {
    "ArgsEscaped": {
      "default": false,
      "description": "Command is already escaped (Windows only)",
      "example": false,
      "type": "boolean",
      "x-nullable": true
    },
    "Cmd": {
      "description": "Command to run specified as a string or an array of strings.\n",
      "example": [
        "/bin/sh"
      ],
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "Entrypoint": {
      "description": "The entry point for the container as a string or an array of strings.\n\nIf the array consists of exactly one empty string (`[\"\"]`) then the\nentry point is reset to system default (i.e., the entry point used by\ndocker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).\n",
      "example": [],
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "Env": {
      "description": "A list of environment variables to set inside the container in the\nform `[\"VAR=value\", ...]`. A variable without `=` is removed from the\nenvironment, rather than to have an empty value.\n",
      "example": [
        "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
      ],
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "ExposedPorts": {
      "additionalProperties": {
        "default": {},
        "enum": [
          {}
        ],
        "type": "object"
      },
      "description": "An object mapping ports to an empty object in the form:\n\n`{\"\u003cport\u003e/\u003ctcp|udp|sctp\u003e\": {}}`\n",
      "example": {
        "443/tcp": {},
        "80/tcp": {}
      },
      "type": "object",
      "x-nullable": true
    },
    "Healthcheck": {
      "$ref": "#/components/schemas/HealthConfig"
    },
    "Labels": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "User-defined key/value metadata.",
      "example": {
        "com.example.some-label": "some-value",
        "com.example.some-other-label": "some-other-value"
      },
      "type": "object"
    },
    "OnBuild": {
      "description": "`ONBUILD` metadata that were defined in the image's `Dockerfile`.\n",
      "example": [],
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-nullable": true
    },
    "Shell": {
      "description": "Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell.\n",
      "example": [
        "/bin/sh",
        "-c"
      ],
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-nullable": true
    },
    "StopSignal": {
      "description": "Signal to stop a container as a string or unsigned integer.\n",
      "example": "SIGTERM",
      "type": "string",
      "x-nullable": true
    },
    "User": {
      "description": "The user that commands are run as inside the container.",
      "example": "web:web",
      "type": "string"
    },
    "Volumes": {
      "additionalProperties": {
        "default": {},
        "enum": [
          {}
        ],
        "type": "object"
      },
      "description": "An object mapping mount point paths inside the container to empty\nobjects.\n",
      "example": {
        "/app/config": {},
        "/app/data": {}
      },
      "type": "object"
    },
    "WorkingDir": {
      "description": "The working directory for commands to run in.",
      "example": "/public/",
      "type": "string"
    }
  },
  "type": "object"
}
```



