> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opengoat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Docker Runtime

> Build and run OpenGoat with Docker for isolated runtime execution.

## Build

```bash theme={null}
docker build -t opengoat:latest .
```

## Run UI

```bash theme={null}
docker run --rm \
  -p 19123:19123 \
  -e OPENGOAT_UI_HOST=0.0.0.0 \
  -e OPENGOAT_UI_PORT=19123 \
  -v opengoat-data:/data/opengoat \
  opengoat:latest
```

## Run CLI Commands in Container

```bash theme={null}
docker run --rm -v opengoat-data:/data/opengoat opengoat:latest cli --help
docker run --rm -v opengoat-data:/data/opengoat opengoat:latest cli agent list
```

## Verify OpenClaw in Image

```bash theme={null}
docker run --rm opengoat:latest openclaw --version
```

## Compose

```bash theme={null}
docker compose up --build
docker compose run --rm opengoat cli --help
```

## Runtime Defaults in Image

* `OPENGOAT_HOME=/data/opengoat`
* `OPENGOAT_UI_HOST=0.0.0.0`
* `OPENGOAT_UI_PORT=19123`
* `OPENGOAT_USE_DIST=1`
