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

# autClaw Docker operations

> Use Docker and Docker Compose to view autClaw logs, restart, remove, and update the container on Linux, Feiniu OS (FNOS), or Synology DSM.

Use this page for daily container maintenance after autClaw is deployed. You can view logs, recreate the container, pull the latest image, or use Docker Compose to manage persistent directories on Feiniu OS (FNOS) and Synology DSM.

## View logs

```bash theme={null}
docker logs -f autclaw
```

## Stop and remove the container

```bash theme={null}
docker rm -f autclaw
```

## Update to the latest image

```bash theme={null}
docker pull nolan1121953/autclaw:latest
docker rm -f autclaw
docker run -d \
  --name autclaw \
  --restart unless-stopped \
  --network bridge \
  -p 8200:8200 \
  -v /opt/autclaw:/opt/autclaw \
  nolan1121953/autclaw:latest
```

## Use Docker Compose

```bash theme={null}
AUTCLAW_HOST_DATA_DIR=/opt/autclaw AUTCLAW_HTTP_PORT=8200 docker compose up -d
```

Optional environment variables:

| Variable                | Description                                                          |
| ----------------------- | -------------------------------------------------------------------- |
| `AUTCLAW_HOST_DATA_DIR` | Host persistent directory. `/opt/autclaw` is recommended by default. |
| `AUTCLAW_HTTP_PORT`     | Host access port. Defaults to `8200`.                                |
| `AUTCLAW_IMAGE`         | Custom image. Defaults to `nolan1121953/autclaw:latest`.             |

## Feiniu OS (FNOS) compose example

```bash theme={null}
AUTCLAW_HOST_DATA_DIR=/vol1/1000/docker/autclaw AUTCLAW_HTTP_PORT=8200 docker compose up -d
```

## Synology compose example

```bash theme={null}
AUTCLAW_HOST_DATA_DIR=/volume1/docker/autclaw AUTCLAW_HTTP_PORT=8200 docker compose up -d
```

## Related docs

* For first-time installation, follow [How to deploy autClaw with Docker](/en/getting-started/deploy).
* To understand persistent paths, read [autClaw runtime directories and paths](/en/getting-started/runtime-paths).
* For in-app upgrades, read [How to upgrade autClaw](/en/getting-started/upgrade).
