> For the complete documentation index, see [llms.txt](https://docs.exsat.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exsat.network/guides-of-data-consensus/others/operation-references/validator-operations/update-to-new-docker-version-for-validator.md).

# 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
```
