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

# Configuration Options

## Disk Quota

Limit Docker image storage with the `--quota` flag (in GB):

```bash theme={null}
./disNet --pubkey pk_xxx --secretkey sk_xxx --quota 250
```

**Recommendation:** Set quota to \~50% of your Docker data root drive capacity. Default is 400GB.

Find your Docker data root:

```bash theme={null}
sudo docker info -f '{{ .DockerRootDir}}'
```

***

## Run as a Service (Recommended)

For production operations, it can be helpful to run `disNet` as a `systemd` service for automatic restarts.

#### 1. Create Service File

```bash theme={null}
sudo nano /etc/systemd/system/disNet.service
```

Add the following (replace paths and keys in `WorkingDirectory` and `ExecStart` fields):

```ini theme={null}
[Unit]
Description=Dispersed Node Client
After=network.target docker.service
Requires=docker.service

[Service]
Type=simple
User=root
WorkingDirectory=/path/to/disNet
ExecStart=/path/to/disNet/disNet --pubkey pk_your_public_key --secretkey sk_your_secret_key
Restart=always
RestartSec=10
StandardOutput=append:/var/log/disNet.log
StandardError=append:/var/log/disNet.log

[Install]
WantedBy=multi-user.target
```

#### 2. Enable and Start

```bash theme={null}
sudo systemctl daemon-reload
sudo systemctl enable disNet
sudo systemctl start disNet
```

#### 3. Check Status

```bash theme={null}
sudo systemctl status disNet
```

#### 4. Check Logs

```bash theme={null}
sudo tail -f /var/log/disNet.log
```
