# Update to new Docker version for Validator

Validator Docker has two operating modes:

1. **Interactive mode** (e.g., for creating a new account)
2. **Long-running mode** (for continuous background operation)

Both modes use the same Docker image. After updating the Docker image, use the appropriate commands to restart each mode.

#### Interactive Mode

To upgrade to the latest exSat Docker version and perform interactive operations (assuming the container is named "commander"), run the following:

```bash
docker pull exsatnetwork/exsat-client:latest
docker stop commander
docker rm commander
docker run -it --name commander -v $HOME/.exsat/:/app/.exsat -e CLIENT_TYPE=commander exsatnetwork/exsat-client:latest
```

#### Long-Running Mode

For continuous operation (assuming the container is named "validator"), use these commands to update Docker:

```bash
docker pull exsatnetwork/exsat-client:latest
docker stop validator
docker rm validator
docker run -d --restart always --name validator -v $HOME/.exsat/:/app/.exsat -e CLIENT_TYPE=validator exsatnetwork/exsat-client:latest
```


---

# 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.exsat.network/guides-of-data-consensus/others/operation-references/validator-operations/update-to-new-docker-version-for-validator.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.
