> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/harness-platform/use-harness-platform/delegates/delegate/delegate-reference/docker-delegate-environment-variables.md).

# Docker delegate environment variables

The following environment variables are available for use in the Docker delegate manifest. Some of these variables are included in the YAML by default; you can specify others based on use case.

#### ACCOUNT\_ID <a href="#accountid" id="accountid"></a>

The Harness account ID for the account with which this delegate registers.

```
- ACCOUNT_ID = XXXXXXxxxxxxxxxx
```

#### DELEGATE\_TOKEN <a href="#delegatetoken" id="delegatetoken"></a>

The Harness account token that is used to register the delegate.

```
- DELEGATE_TOKEN = XXXXXXxxxxxxxxxx
```

#### MANAGER\_HOST\_AND\_PORT <a href="#managerhostandport" id="managerhostandport"></a>

The Harness SaaS manager URL. `https` indicates port 443.

```
- MANAGER_HOST_AND_PORT = https://app.harness.io
```

#### DELEGATE\_NAME <a href="#delegatename" id="delegatename"></a>

The name of the delegate. This is the name that appears in Harness when the delegate is registered.

You can automate delegate creation by omitting the name and using a script to copy the delegate YAML file, giving a unique name to the `value` of the delegate name for each newly created delegate you want to register.

For more information, go to [Automate delegate installation](/harness-platform/use-harness-platform/delegates/delegate/install-delegates/automate-delegate-installation.md).

```yaml
- name: DELEGATE_NAME
  value: qa
```

#### NEXT\_GEN <a href="#nextgen" id="nextgen"></a>

Indicates whether the delegate registers in Harness NextGen (`true`) or FirstGen (`false`).

```yaml
- name: NEXT_GEN
  value: "true"
```

#### DELEGATE\_DESCRIPTION <a href="#delegatedescription" id="delegatedescription"></a>

The description that is given to the delegate in Harness Manager or YAML before the delegate registers. The description appears on the delegate details page in Harness Manager.

```yaml
- name: DELEGATE_DESCRIPTION
  value: ""
```

#### DELEGATE\_TYPE <a href="#delegatetype" id="delegatetype"></a>

The type of the delegate.

```yaml
- name: DELEGATE_TYPE
  value: "DOCKER"
```

#### DELEGATE\_TAGS <a href="#delegatetags" id="delegatetags"></a>

The tags that were added to the delegate in Harness Manager or YAML before delegate registration.

Harness generates tags based on the delegate name. You can add others. The tags appear on the delegate details page in Harness Manager.

For more information, go to [Tags reference](/harness-platform/use-harness-platform/tags/overview.md#create-tags-for-pipelines) and [Select delegates with tags](/harness-platform/use-harness-platform/delegates/delegate/manage-delegates/select-delegates-with-selectors.md).

```yaml
- name: DELEGATE_TAGS
  value: ""
```

#### DELEGATE\_TASK\_LIMIT <a href="#delegatetasklimit" id="delegatetasklimit"></a>

The maximum number of tasks the delegate can perform at one time. Delegate operations are categorized as different types of tasks.

```yaml
- name: DELEGATE_TASK_LIMIT
  value: "50"
```

#### PROXY\_MANAGER <a href="#proxymanager" id="proxymanager"></a>

Indicates whether to use Harness Manager or a proxy. A value of `true` indicates an outbound proxy of traffic to Harness.

The default value is `true`.

```yaml
- PROXY_MANAGER = true
```

#### INIT\_SCRIPT <a href="#initscript" id="initscript"></a>

You can use this environment variable to run scripts on the delegate. For example, you can add a script to `INIT_SCRIPT` to install software on the delegate pod. The software is installed after you apply the delegate YAML.

A multiline script must follow the YAML spec for [literal scalar style](https://yaml.org/spec/1.2-old/spec.html#id2795688).

For more information, go to [Build custom delegate images with third-party tools](/harness-platform/use-harness-platform/delegates/delegate/install-delegates/build-custom-delegate-images-with-third-party-tools.md).

```yaml
- INIT_SCRIPT =  echo hello world!
```

#### See also <a href="#see-also" id="see-also"></a>

[Delegate environment variables](/harness-platform/use-harness-platform/delegates/delegate/delegate-reference/delegate-environment-variables.md)
