# Updating Inference Scouts

## How to Update Your Scout

Keeping your Scout node up-to-date ensures optimal performance, security, and access to the latest features. Follow these steps to update your Scout node:

### Step-by-Step Guide

#### 1. Stop the Current Scout Container

First, stop the running Scout container to prepare for the update:

```bash
docker stop scout
```

#### 2. Remove the Existing Scout Container

Remove the old Scout container to avoid conflicts with the new version:

```bash
docker rm scout
```

Optionally, clear your images (use with caution):

```bash
# WARNING: This will delete all your Docker images. 
# Proceed with care if you are on a shared computer.
docker system prune -a
```

#### 3. Pull the Latest Docker Image

Fetch the latest version of the Scout image from Docker Hub:

```bash
docker pull chasmtech/chasm-scout:latest
```

#### 4. Update the .env File (if necessary)

Make sure your `.env` file is up-to-date with any new environment variables required by the latest version. Compare your `.env` file with the latest template provided in the documentation or `.env.sample`.

#### 5. Run the Updated Scout Container

Start the Scout container with the updated image and environment variables:

```bash
docker run -d --restart=always --env-file ./.env -p 3001:3001 --name scout chasmtech/chasm-scout
```

#### 6. Verify the Update

Check that the updated Scout container is running properly:

**a. Check Logs**

View the container logs to ensure there are no errors:

```bash
docker logs scout
```

**b. Access the Application**

Open your browser and navigate to `http://<your-server-ip>:<port>` to verify the setup.

**c. Test Server Response**

Ensure the server is live by running:

```bash
curl localhost:3001
```

Expected response:

```
OK
```

**d. Check the Leaderboard**

Visit the leaderboard and confirm that the version has been updated.

This revised version improves the formatting and structure for GitBook, using proper Markdown syntax for headers, code blocks, and lists. It also separates the verification steps into sub-steps for better clarity and readability.
