> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xsoar-8-on-prem/8.10/configure-cortex-xsoar/integrations/change-the-docker-image-in-an-integration-or-script.md).

# Change the Docker image in an integration or script

Docker enables you to run scripts and integrations from an image in a controlled environment that isolates and safeguards the server. It also simplifies environment setup by packaging dependencies and configurations within an image, ensuring consistent execution across different systems. By default, Cortex XSOAR pulls images from the `Demisto` Docker image registry in Github, which are used in scripts and integrations as needed.  Cortex XSOAR integrations and scripts have the relevant Docker image already selected. For example, the **Rasterize** integration uses the `demisto/python.3.3.11.9.1079` Docker image.

You may want to select a different Docker image for your integration or script. In Cortex XSOAR, you can select a different Docker image from a dropdown that is pulled from the `Demisto` Docker image registry. In Github, the [dockerfiles-info branch](https://github.com/demisto/dockerfiles-info/tree/master) contains information about each image to help you find one that is relevant.

{% hint style="info" %}

### Note

You can access publicly available Docker hub images from the Cortex XSOAR tenant even if there is no external connection to the `Demisto` registryr hub, for example, if due to firewall constraints your engine cannot access the `Demisto` registry.
{% endhint %}

Alternatively, instead of pulling publicly available images in the `Demisto` registry, you can pull images from a private authenticated image registry. For more information, see [Pull images from a private image registry](/cortex-xsoar-8-on-prem/8.10/configure-cortex-xsoar/integrations/change-the-docker-image-in-an-integration-or-script/pull-images-from-a-private-image-registry.md).

You can pull Docker images either directly or through an engine. If using an engine to pull Docker images from a private authenticated registry, you first need to configure the authentication on the engine machine. For more information, see [Connect your engine to an image registry](/cortex-xsoar-8-on-prem/8.10/configure-cortex-xsoar/integrations/change-the-docker-image-in-an-integration-or-script/connect-your-engine-to-an-image-registry.md).

Change the Docker image for a script

1. **Edit** the script.
2. Under **ADVANCED**, in the **Docker image name** field, click **X** to clear the current selection and then select a Docker image name from the dropdown menu.

   For more information about changing the Docker image for a script, see the **Advanced** tab in [Create a script](/cortex-xsoar-8-on-prem/8.10/configure-cortex-xsoar/playbooks/scripts/create-a-script.md).
3. **Save** your changes.

Change the Docker image for an integration

1. Go to Settings & Info → **Settings** → **Integrations** → **Instances**, find your integration, and click the pencil icon to edit the integration’s source.

   For an out-of-the-box content pack integration, you first need to duplicate the integration to edit it.
2. In the **Integration Settings**, expand the **Script** section.
3. Click **X** to clear the current selection and then select a Docker image name from the dropdown menu.

   For more information about changing the Docker image, see the **Advanced** tab in [Create a script](/cortex-xsoar-8-on-prem/8.10/configure-cortex-xsoar/playbooks/scripts/create-a-script.md).
4. **Save** your changes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xsoar-8-on-prem/8.10/configure-cortex-xsoar/integrations/change-the-docker-image-in-an-integration-or-script.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
