# Installation with Docker

## Prerequisite

Docker first must be installed. Refer to the official Docker install instructions [here](https://docs.docker.com/engine/install).

## Install

To install the agent, pull the following Docker image.

{% tabs %}
{% tab title="macOS" %}

```bash
docker pull stoobly/agent
```

{% endtab %}

{% tab title="Linux" %}

```bash
docker pull stoobly/agent
```

{% endtab %}
{% endtabs %}

## Update

To update the agent, re-pull the Docker image.

{% tabs %}
{% tab title="macOS" %}

```bash
docker pull stoobly/agent
```

{% endtab %}

{% tab title="Linux" %}

```bash
docker pull stoobly/agent
```

{% endtab %}
{% endtabs %}

## Verify

```bash
docker run \
    -v ~/.stoobly:/home/stoobly/.stoobly \
    stoobly/agent \
    stoobly-agent --help
```

## Next Steps

You're all setup! Depending on your use case, you may want to take a look at:

{% tabs %}
{% tab title="API Mocking" %}
{% content-ref url="/pages/XRMveeqrNM5K07qs5H8k" %}
[How to Record Requests](/guides/how-to-record-requests.md)
{% endcontent-ref %}
{% endtab %}

{% tab title="E2E Testing" %}
{% content-ref url="/pages/Ri9aZJJVXgxuyy67a3tW" %}
[How to Integrate E2E Testing](/guides/how-to-integrate-e2e-testing.md)
{% endcontent-ref %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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:

```
GET https://docs.stoobly.com/getting-started/install-and-run/installation-with-docker.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
